babel-plugin-dual-import
JSON →Babel plugin that transforms dynamic import() calls to also fetch associated CSS chunks via a separate importCss helper. v1.2.1 (2018) was the last release; the project is in maintenance mode. It converts `import('./Foo.js')` into `Promise.all([import('./Foo'), importCss('Foo')])`, automatically generating webpack chunk names via magic comments. Key differentiator: it eliminates manual webpack chunk naming for code-splitting with CSS, integrating with webpack-flush-chunks and universal rendering. Unlike raw CSS-in-JS solutions, it works with standard CSS files.
Traffic · last 30 days stale · no recent hits
total hits 20
actors 4 distinct systems
last hit 18d ago AhrefsBot
top countries 🇸🇬 Singapore · VN · 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France
Resources
API endpoints
compatibility /v1/registry/babel-plugin-dual-import/compatibility