Preparing for system design interviews?  Try bugzed.com →

babel-plugin-dual-import

JSON →
library 1.2.1 ·javascript maintenance
verified Jun 17, 2026

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.

total hits 20
actors 4 distinct systems
last hit 18d ago AhrefsBot
ByteDance
7
GPTBot
4
Script
1
Humans
4

top countries 🇸🇬 Singapore · VN · 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France