react-code-dataset / next.js /crates /next-custom-transforms /tests /fixture /next-dynamic /template-literal /output-prod.js
| import dynamic from 'next/dynamic'; | |
| const DynamicComponent = dynamic(()=>import(`../components/hello`), { | |
| loadableGenerated: { | |
| webpack: ()=>[ | |
| require.resolveWeak("../components/hello") | |
| ] | |
| } | |
| }); | |
| const componentRoot = '@/some-components'; | |
| const Component1 = dynamic(()=>import(`${componentRoot}/component1`)); | |
| const Component2 = dynamic(()=>import(`${componentRoot}/component2`)); | |