Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore polyfill in node #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"presets": [
["es2015", { "modules": false }]
"@babel/preset-env"
]
}
5 changes: 3 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "airbnb-base",
"extends": ["airbnb-base", "prettier"],
"plugins": ["prettier"],
"env": {
"browser": true
}
}
}
14 changes: 4 additions & 10 deletions dist/demo.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/demo.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions dist/ff-polyfill.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// Copy paste from https://gist.github.com/nuxodin/9250e56a3ce6c0446efa
export default function () {
// exit if this function is runnging in node
if (typeof window === "undefined") {
return;
}
var w = window,
d = w.document;

Expand Down
Loading