
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
babel-plugin-dynamic-import-node-babel-7
Advanced tools
Babel plugin to transpile import() to a deferred require(), for node
If you're looking for the original one, check on: Github This fork was created to add support for Babel 7: Github
Babel plugin to transpile import()
to a deferred require()
, for node. Matches the proposed spec.
NOTE: Babylon >= v6.12.0 is required to correct parse dynamic imports.
$ npm install babel-plugin-dynamic-import-node-babel-7 --save-dev
.babelrc
(Recommended).babelrc
{
"plugins": ["dynamic-import-node-babel-7"]
}
$ babel --plugins dynamic-import-node script.js
require('babel-core').transform('code', {
plugins: ['dynamic-import-node']
});
Promise.all([
import('./lib/import1'),
import('./lib/import2')
]).then(([
Import1,
Import2
]) => {
console.log(Import1);
/* CODE HERE*/
});
v2.0.7
FAQs
Babel plugin to transpile import() to a deferred require(), for node
The npm package babel-plugin-dynamic-import-node-babel-7 receives a total of 8,899 weekly downloads. As such, babel-plugin-dynamic-import-node-babel-7 popularity was classified as popular.
We found that babel-plugin-dynamic-import-node-babel-7 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
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.