Open jsvg opened 7 years ago
Actually, babel docs recommend to include babel-runtime
as development dependency (devDep)
http://babeljs.io/docs/plugins/transform-runtime/#installation
@JabbyPanda
babel-runtime
should be included as a dependency (not devDep) and babel-plugin-transform-runtime
should be included as a dev-dependency.
I believe these two configurations of babel are redundant.
babel-polyfill provides globals for es6 features, while the runtime transform method polyfills without using global methods. The latter method is usually preferable.
Would suggest modifying
package.json
to removebabel-polyfill
. Also, babel docs recommendbabel-runtime
be included as a dependency (not devDep). Thenbabel-polyfill
can be removed from the gulp file's paths.entry array.This change appears to reduce build size by a small amount.
Can PR this if desired.