- Overview of a workflow based on
env
: http://2ality.com/2017/07/npm-packages-via-babel.html env
has the optionuseBuiltins
that helps with polyfilling the standard library: https://github.com/babel/babel-preset-env#usebuiltins
Approach for untranspiled code (meant to be transpiled by Babel and, e.g., webpack):
- No package ever polyfills.