Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
deduped-babel-presets
Advanced tools
Babel 6 presets with shared dependencies manually deduplicated for npm2 compatibility
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:
These modules provide presets for use in your Babel presets
config:
Where not otherwise noted, these provide the equivalent official Babel preset:
deduped-babel-presets/es2015
deduped-babel-presets/es2016
deduped-babel-presets/react
deduped-babel-presets/stage-3
deduped-babel-presets/stage-2
deduped-babel-presets/stage-1
- babel-preset-stage-1
plus the transform-decorators-legacy
plugin.deduped-babel-presets/stage-0
- provides the same additional plugins as babel-preset-stage-0
, but includes deduped-babel-presets/stage-1
instead of babel-preset-stage-1
.deduped-babel-presets/es2015-loose
- babel-preset-es2015
with loose mode enabled where available.deduped-babel-presets/es2015-native
- babel-preset-es2015
with es2015-modules-commonjs
disabled, 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 and render()
error catching.deduped-babel-presets/react-prod
- production optimisations for React, using the following plugins:
deduped-babel-presets/runtime
- preset for using the transform-runtime
plugin (with all of its features activated as per the default).deduped-babel-presets/runtime-helpers
- transform-runtime
configured solely to import helpers from babel-runtime
when necessary.deduped-babel-presets/runtime-polyfill
- transform-runtime
configured to import helpers from babel-runtime
and apply ES6 polyfills within your code.deduped-babel-presets/runtime-regenerator
- transform-runtime
configured to import helpers from babel-runtime
and the regenerator
runtime when necessary (i.e. when async
/await
syntax is used).These modules provide plugins for use in your Babel plugins
config:
deduped-babel-presets/plugins/istanbul
- the istanbul
plugin for code coverage instrumentation, which needs exclude
/include
config.
deduped-babel-presets/plugins/react-inline-elements
- the react-inline-elements
plugin.
This is not included in the deduped-babel-presets/react-prod
preset because it currently depends on having Symbol
polyfilled to work in older browsers, which has the potential to introduce breaking changes to your production build.
See React issue #5138.
pkgcount was used to manually deduplicate Babel 6 shared dependencies.
FAQs
Babel 6 presets with shared dependencies manually deduplicated for npm2 compatibility
We found that deduped-babel-presets demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.