babel-plugin-transform-inline-imports-commonjs

JSON →
library 1.2.0 ·javascript maintenance
verified May 27, 2026

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.

total hits 25
actors 7 distinct systems
last hit 2d ago AhrefsBot
MetaBot
4
ByteDance
3
GPTBot
2
Script
1
Search engines
2
Humans
5

top countries 🇺🇸 United States · 🇩🇪 Germany · VN · 🇸🇬 Singapore · 🇨🇦 Canada