Fix Turbopack worker chunk loading with asset prefix (#96636)
## Summary
- propagate the effective worker asset prefix through the worker
bootstrap so runtime chunk registration and loading use the same base
path
- verify workers execute with both explicit and empty
`turbopackWorkerAssetPrefix` overrides
- add coverage for the Resvg WASM worker reproduction
Fixes #96613
## Verification
- `NEXT_TEST_PREFER_OFFLINE=1 pnpm test-start-turbo
test/e2e/turbopack-worker-asset-prefix/turbopack-worker-asset-prefix.test.ts`
- `NEXT_TEST_PREFER_OFFLINE=1 pnpm test-dev-turbo
test/e2e/turbopack-worker-asset-prefix/turbopack-worker-asset-prefix.test.ts`
- Resvg WASM worker test in production and development Turbopack
- focused `turbopack-tests` worker and ignore-comments snapshots
- `pnpm swc-build-native`
- Full `pnpm build-all` did not complete locally because of unrelated
existing `httpxy` and proxy-request type errors
<!-- NEXT_JS_LLM -->
---------
Co-authored-by:
Tobias Koppers <tobias.koppers@googlemail.com>
Showing
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This diff is collapsed.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This diff is collapsed.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
Please
register
or
sign in
to comment