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.
@babel/plugin-syntax-export-default-from
Advanced tools
The @babel/plugin-syntax-export-default-from package allows Babel to parse a specific type of export syntax that is not officially part of the ECMAScript standard. This syntax allows for exporting a default export from another module directly from within the export statement.
Enable parsing of export default from syntax
This feature allows developers to write an export statement that both imports a default export from a module and immediately exports it as a named export from the current module. This is a shorthand that can make re-exporting more concise.
export v from 'mod';
This package is a Babel plugin that not only allows Babel to parse the export default from syntax but also transforms it into a form that can be executed in environments that do not support this syntax natively. It is a more complete solution compared to @babel/plugin-syntax-export-default-from, which only enables parsing.
While not a direct alternative, @babel/preset-env is a collection of Babel plugins that enable the transformation of modern JavaScript into a form compatible with older browsers and environments. It includes plugins for various export and import syntax transformations, and depending on the configuration, it may include the necessary plugins to handle export default from syntax.
Allow parsing of export default from
See our website @babel/plugin-syntax-export-default-from for more information.
Using npm:
npm install --save-dev @babel/plugin-syntax-export-default-from
or using yarn:
yarn add @babel/plugin-syntax-export-default-from --dev
v7.25.9 (2024-10-22)
babel-parser
, babel-template
, babel-types
syntacticPlaceholders
mode (@liuxingbaoyu)babel-helper-compilation-targets
, babel-preset-env
ClassAccessorProperty
to prevent the no-undef
rule (@victorenator)babel-parser
, babel-types
VISITOR_KEYS
etc. faster to access (@liuxingbaoyu)FAQs
Allow parsing of export default from
We found that @babel/plugin-syntax-export-default-from demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers 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.