babel-plugin-transform-inline-imports-commonjs
JSON →A Babel plugin (v1.2.0, last updated 2019) that transforms ES module imports into lazily loaded, memoized CommonJS requires, deferring require() calls until the imported identifier is actually referenced. Unlike the standard babel-plugin-transform-es2015-modules-commonjs, this avoids upfront I/O and execution costs for imported modules. Maintained by the author of babel-plugin-module-resolver, but now in maintenance mode as most projects have moved to @babel/preset-env or other bundlers. Supports options like excludeModules and excludeNodeBuiltins to skip lazy loading for specific modules or Node builtins. No TypeScript types, minimal breaking changes across versions.
Traffic · last 30 days ↑233% vs prev 7d
top countries 🇺🇸 United States · 🇩🇪 Germany · VN · 🇸🇬 Singapore · 🇨🇦 Canada