Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@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
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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.