Skip to content

Commit dc8fb1f

Browse files
authored
Revise web workers guide to remove dynamic path section
Removed unnecessary section on dynamic public path in web workers guide.
1 parent 97b160b commit dc8fb1f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/content/guides/web-workers.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@ Note that this is only available in ESM. `Worker` in CommonJS syntax is not supp
6868
### Cross-Domain and Dynamic Web Workers
6969
7070
In some setups, you may need your worker script to be hosted on a different origin
71-
(for example, on a CDN or within a micro-frontend).
72-
Webpack supports this, but the worker must know the correct **public path** at runtime.
73-
74-
### Setting a dynamic public path safely
7571
7672
The recommended approach is to define `__webpack_public_path__` at the beginning of your worker entry file, before any imports.
7773
This lets webpack resolve chunk URLs correctly without editing generated code:

0 commit comments

Comments
 (0)