mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Closes PACK-2504 Closes PACK-3020 - Implemented `WorkerAssetReference` to handle `new Worker()` calls - Added `WorkerLoaderModule` and `WorkerLoaderChunkItem` to create separate chunk groups for worker scripts - Updated runtime code to support loading worker scripts - Modified the analysis process to detect and handle worker creation - Workers are loaded via blob urls (which then `importScripts`-s all required chunks), which required introducing a `TURBOPACK_WORKER_LOCATION` global variable to support the relative chunk urls in the isolated blob origin. - [x] `evaluated_chunk_group` is not implemented by `NodeJsChunkingContext`, so it currently fails to build in RSC/SSR contexts - I've made it ignore worker calls for `Rendering::Server` for now
2 lines
28 B
TypeScript
2 lines
28 B
TypeScript
export default 'worker-dep'
|