![Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support](https://cdn.sanity.io/images/cgdhsj6q/production/2cf8fa428fd5329a3f9bc7f76a597ac829bb1b3d-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@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
The npm package @babel/plugin-syntax-export-default-from receives a total of 3,219,039 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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.