Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@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.7 (2024-10-02)
babel-helper-validator-identifier
babel-traverse
babel-plugin-transform-classes
super()
check (@nicolo-ribaudo)babel-generator
infer
in compact mode (@nicolo-ribaudo)[no LineTerminator here]
after nodes (@nicolo-ribaudo)babel-types
babel-core
--experimental-require-module
(@nicolo-ribaudo)babel-helper-compilation-targets
, babel-helper-plugin-utils
, babel-preset-env
babel-plugin-proposal-destructuring-private
, babel-plugin-syntax-decimal
, babel-plugin-syntax-import-reflection
, babel-standalone
babel-generator
[no LineTerminator here]
before nodes (@nicolo-ribaudo)babel-plugin-transform-typescript
babel-types
BABEL_TYPES_8_BREAKING
at startup (@nicolo-ribaudo)FAQs
Allow parsing of export default from
The npm package @babel/plugin-syntax-export-default-from receives a total of 3,355,858 weekly downloads. As such, @babel/plugin-syntax-export-default-from popularity was classified as popular.
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.