This project was created as a staging area for several CommonJS libraries we would like to use. Namely, several polyfills located within core-js
.
To be used with RequireJS, we need to bundle the libraries we want to use with webmake
.
The core-js
module contains the many polyfills that are used by babel-polyfill
. Why not just use babel-polyfill
you ask?
- Becuase
babel-polyfill
is way bigger than what we need (and we already usees6-shim
) - And because
babel-polyfill
indirectly referencesregenerator-runtime
which is a Facebook library that we can't use because of their licenses.
Note there is an open issue with regenerator
to change their license so we may need to re-investigate all this if they ever get it fixed.
First run,
> npm install
Then run,
> ./node_modules/.bin/webmake index.js es6-partial-polyfil.js
Don't forget to include a copy of core-js
's LICENSE file.