rsnext/test/integration/production/pages/dynamic/no-css.js
khades 1a7f3e5199
Store css file dependencies info for dynamic imports and apply it at SSR (#12843)
To prevent FOUC, discussed in #10557 i need to store information about css file dependencies for chunk. Right now current implementation just throws away everything but js.

Can there be more than one css file in chunk? If no - code will be simplified.

closes #10557
2020-08-24 05:20:11 +00:00

5 lines
127 B
JavaScript

import dynamic from 'next/dynamic'
const Hello = dynamic(import('../../components/dynamic-css/no-css'))
export default Hello