mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This PR adds support for generating single-entry chunks, based on this plan: https://gist.github.com/bgw/356344ea6fb0e897647c478d01c096d3 up until Step 6. Also adds a basic snapshot test to capture this behaviour. --------- Co-authored-by: Benjamin Woodruff <[email protected]>
9 lines
261 B
JavaScript
9 lines
261 B
JavaScript
// `dep1` is reached via `import('./dep1')` and itself dynamically imports
|
|
// `dep2` — exercising a nested dynamic-import boundary that must also inline.
|
|
export function dep1() {
|
|
console.log('dep1')
|
|
import('./dep2').then(({ dep2 }) => {
|
|
dep2()
|
|
})
|
|
}
|