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]>
8 lines
236 B
JavaScript
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()
|
|
})
|