{"library":"babel-plugin-dual-import","type":"library","category":null,"description":"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.","language":"javascript","status":"maintenance","version":"1.2.1","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-dual-import","imports":["module.exports = { plugins: ['dual-import'] }","import importCss from 'babel-plugin-dual-import/importCss.js'","const importCss = require('babel-plugin-dual-import/importCss.js').default"]},{"cmd":"yarn add babel-plugin-dual-import","imports":[]},{"cmd":"pnpm add babel-plugin-dual-import","imports":[]}],"homepage":null,"github":"https://github.com/faceyspacey/babel-plugin-dual-import","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-dual-import","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-dual-import/compatibility"}}