
Security News
152 Chrome Live Wallpaper Extensions Hid Ad Tracking and Faked Google Search Traffic
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.
@srdstore/babel-plugin-dynamic-import-node
Advanced tools
Babel plugin to transpile import() to a deferred require(), for node (Re-published from babel-plugin-dynamic-import-node@2.3.3)
Babel plugin to transpile import() to a deferred require(), for node. Matches the proposed spec.
NOTE: Babylon >= v6.12.0 is required to correctly parse dynamic imports.
npm install babel-plugin-dynamic-import-node --save-dev
.babelrc (Recommended).babelrc
{
"plugins": ["dynamic-import-node"]
}
noInterop - A boolean value, that if true will not interop the require calls. Useful to avoid using require('module').default on commonjs modules.{
"plugins": [
["dynamic-import-node", { "noInterop": true }]
]
}
$ 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*/
});
FAQs
Babel plugin to transpile import() to a deferred require(), for node (Re-published from babel-plugin-dynamic-import-node@2.3.3)
We found that @srdstore/babel-plugin-dynamic-import-node demonstrated a healthy version release cadence and project activity because the last version was released less than 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 network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.