deduped-babel-presets v0.0.21
Deduped Babel 6 Presets
Babel 6 presets and dependencies, with their shared dependencies manually deduplicated for npm2 compatibility.
This reduces the total size for an npm2 install of this module's dependencies from ~169 MB to ~7.8 MB:
| Before | After |
|---|---|
![]() | ![]() |
The following presets are available:
Presets
These modules provide presets for use in your Babel presets config:
Core Babel Presets
Where not otherwise noted, these provide the equivalent official Babel preset:
deduped-babel-presets/es2015deduped-babel-presets/es2016deduped-babel-presets/reactdeduped-babel-presets/stage-3deduped-babel-presets/stage-2deduped-babel-presets/stage-1-babel-preset-stage-1plus thetransform-decorators-legacyplugin.deduped-babel-presets/stage-0- provides the same additional plugins asbabel-preset-stage-0, but includesdeduped-babel-presets/stage-1instead ofbabel-preset-stage-1.
Custom Presets
deduped-babel-presets/es2015-loose-babel-preset-es2015with loose mode enabled where available.deduped-babel-presets/es2015-native-babel-preset-es2015withes2015-modules-commonjsdisabled, for tree-shaking builds with tools like Rollup and Webpack v2.deduped-babel-presets/es2015-loose-native- a combination of the above two presets.deduped-babel-presets/react-hmre- development preset for React Hot Module Reloading andrender()error catching.deduped-babel-presets/react-prod- production optimisations for React, using the following plugins:deduped-babel-presets/runtime- preset for using thetransform-runtimeplugin (with all of its features activated as per the default).deduped-babel-presets/runtime-helpers-transform-runtimeconfigured solely to import helpers frombabel-runtimewhen necessary.deduped-babel-presets/runtime-polyfill-transform-runtimeconfigured to import helpers frombabel-runtimeand apply ES6 polyfills within your code.deduped-babel-presets/runtime-regenerator-transform-runtimeconfigured to import helpers frombabel-runtimeand theregeneratorruntime when necessary (i.e. whenasync/awaitsyntax is used).
Plugins
These modules provide plugins for use in your Babel plugins config:
deduped-babel-presets/plugins/istanbul- theistanbulplugin for code coverage instrumentation, which needsexclude/includeconfig.deduped-babel-presets/plugins/react-inline-elements- thereact-inline-elementsplugin.This is not included in the
deduped-babel-presets/react-prodpreset because it currently depends on havingSymbolpolyfilled to work in older browsers, which has the potential to introduce breaking changes to your production build.See React issue #5138.
MIT Licensed
pkgcount was used to manually deduplicate Babel 6 shared dependencies.
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago


