Skip to content

Commit 411b40a

Browse files
authored
Merge pull request #24156 from andybalaam/andybalaam/fix-wrong-worker-path
Revert "Explicitly set worker-loader's publicPath to webapp"
2 parents c39bbb5 + 9aa2398 commit 411b40a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

webpack.config.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,6 @@ module.exports = (env, argv) => {
236236
{
237237
test: /\.worker\.ts$/,
238238
loader: "worker-loader",
239-
options: {
240-
// worker-loader v3 defaults to output.publicPath here,
241-
// which causes worker.js to be included in the bundle
242-
// in R2. This in turn causes CSP to fail when loading
243-
// the worker.
244-
// So, we explicitly ask to include it in the webapp
245-
// dir.
246-
publicPath: "webapp",
247-
},
248239
},
249240
{
250241
test: /\.(ts|js)x?$/,

0 commit comments

Comments
 (0)