Files
b0d33e9afb [turbopack] Add support for single-entry chunks (#94727)
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]>
2026-06-23 17:39:10 -07:00

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()
})
}