mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### Why? In preparation for moving all turbopack crates Also makes them easier to work with in general. Closes PACK-3164
11 lines
325 B
JavaScript
11 lines
325 B
JavaScript
import dynamic from 'next/dynamic';
|
|
import somethingElse from 'something-else';
|
|
const DynamicComponent = dynamic(()=>import('../components/hello'), {
|
|
loadableGenerated: {
|
|
modules: [
|
|
"src/some-file.js -> " + "../components/hello"
|
|
]
|
|
}
|
|
});
|
|
somethingElse.dynamic('should not be transformed');
|