mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
d0777680de
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
9 lines
140 B
JavaScript
9 lines
140 B
JavaScript
export default function AppLayout({ children }) {
|
|
return (
|
|
<html>
|
|
<head></head>
|
|
<body>{children}</body>
|
|
</html>
|
|
)
|
|
}
|