Babel Plugin for Dynamic `import()` in Node.js

JSON →
library 2.3.3 ·javascript abandoned
verified May 27, 2026

This Babel plugin, `babel-plugin-dynamic-import-node`, transpiles ECMAScript `import()` expressions into deferred CommonJS `require()` calls specifically for Node.js environments. Its primary purpose is to enable the use of modern dynamic `import()` syntax in projects targeting Node.js versions that do not natively support ESM dynamic imports, or in mixed CommonJS/ESM contexts where asynchronous loading of CommonJS modules is required. The current stable version is 2.3.3, with its last significant updates occurring around 2019. While still functional for legacy projects, its necessity has largely diminished with the widespread adoption of native ESM support in modern Node.js versions and the capabilities of `@babel/preset-env` to handle dynamic imports for various targets. Key differentiators include its focus solely on `import()` to `require()` transformation, offering specific control over interoperability via the `noInterop` option.

total hits 22
actors 8 distinct systems
last hit 6d ago MetaBot
MetaBot
4
ByteDance
3
GPTBot
2
Script
1
ClaudeBot
1
Search engines
1
Humans
2

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada · 🇫🇷 France