File size: 414 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 |
import dynamic from 'next/dynamic';
const DynamicComponent = dynamic(()=>import(`../components/hello`), {
loadableGenerated: {
modules: [
"src/some-file.js -> " + "../components/hello"
]
}
});
const componentRoot = '@/some-components';
const Component1 = dynamic(()=>import(`${componentRoot}/component1`));
const Component2 = dynamic(()=>import(`${componentRoot}/component2`));
|