From bf8d9801cecabc389b620d07e0c46bb055443146 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Tue, 11 Nov 2014 13:13:10 +1100 Subject: [PATCH] rename browserified polyfill to browser-polyfill - fixes #140 --- .gitignore | 2 +- Makefile | 2 +- README.md | 4 ++-- polyfill.js | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 polyfill.js 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");