diff --git a/.gitignore b/.gitignore index 6277162e9c..647a0f8626 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,7 @@ test/tmp /templates.json /tests.json /browser.js -/polyfill.js +/browser-polyfill.js /runtime.js coverage dist diff --git a/Makefile b/Makefile index 74630c7506..122f067543 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,7 @@ publish: make build cp dist/6to5.min.js browser.js - cp dist/polyfill.min.js polyfill.js + cp dist/polyfill.min.js browser-polyfill.js cp dist/runtime.min.js runtime.js node bin/cache-templates diff --git a/README.md b/README.md index 054180b1d3..f63a69fd25 100644 --- a/README.md +++ b/README.md @@ -346,8 +346,8 @@ require("6to5/polyfill"); ### Browser -Available from the `polyfill.js` file within the 6to5 directory of an npm -release. +Available from the `browser-polyfill.js` file within the 6to5 directory of an +npm release. ## Optional runtime diff --git a/polyfill.js b/polyfill.js new file mode 100644 index 0000000000..a33b39912f --- /dev/null +++ b/polyfill.js @@ -0,0 +1 @@ +module.exports = require("./lib/6to5/polyfill");