Closed tracker1 closed 6 years ago
If you're installing it from npm, you have access to every build tool (like webpack or browserify) so there's no need to have a pre-bundled file.
If you need a separate dist file (as opposed to properly requiring/importing es7-shim in your entry point(s)), then I'd suggest a postinstall script that creates it in the desired location.
I was able to build a
dist/es7-shim.browser.js
file with the following command (webpack
4 andwebpack-cli
packages needed)It isn't minified, but is relatively debuggable in this form, and should be usable directly in browser, as well as in extendscript (adobe products) after JSON, es5 and es6 shims/shams.