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

8 lines
236 B
JavaScript

// Service-worker-style entry: the whole transitive closure (including the
// dynamic `import()` targets) must be inlined into a single output file.
console.log('service worker entry')
import('./dep1').then(({ dep1 }) => {
dep1()
})