A Babel plugin that transpiles dynamic import() expressions to deferred require() calls for Node.js environments. This version (2.0.7) is a fork of the original airbnb plugin updated to support Babel 7. It matches the proposed import() spec and requires Babylon >= v6.12.0 to correctly parse dynamic imports. Key differentiators: specifically targets Node.js (not browsers), uses deferred require() to preserve lazy loading semantics, and is a drop-in replacement for the Babel 6 version. Maintenance status: a fork created to test Babel 7 compatibility; users should consider the official airbnb version or alternative dynamic import transforms for production.
npm install babel-plugin-dynamic-import-node-babel-7Verified import paths — ran on the pinned version, not inferred.
Shows Babel configuration and how dynamic import() is transformed to deferred require() for Node.
Use the official @babel/plugin-syntax-dynamic-import for parsing, and a runtime polyfill like dynamic-import-polyfill if needed.
Ensure the plugin string matches the package name: "dynamic-import-node-babel-7".
Use only with Babel 7. For Babel 6, use the original `babel-plugin-dynamic-import-node`.
Run `npm install --save-dev babel-plugin-dynamic-import-node-babel-7` and check .babelrc for correct name.
Add '@babel/plugin-syntax-dynamic-import' to plugins list in addition to this plugin.
No dependency data recorded yet.