How to use the babel-plugin-universal-import/importCss.js function in babel-plugin-universal-import

To help you get started, we’ve selected a few babel-plugin-universal-import examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cescoferraro / react-boil / app / components / user / index.tsx View on Github external
load: () => Promise.all([
            System.import(/* webpackChunkName: 'user' */ "./user"),
            importCss("user")]).then(promises => promises[0]),
        chunkName: () => "user",

babel-plugin-universal-import

Babel plugin to transform import() into its Universal counterpart

MIT
Latest version published 4 years ago

Package Health Score

57 / 100
Full package analysis