Revert "Explicitly set worker-loader's publicPath to webapp"

This reverts commit f5fea0be04.
pull/24156/head
Andy Balaam 2023-01-04 11:17:16 +00:00
parent c39bbb5b85
commit 9aa23980ba
1 changed files with 0 additions and 9 deletions

View File

@ -236,15 +236,6 @@ module.exports = (env, argv) => {
{
test: /\.worker\.ts$/,
loader: "worker-loader",
options: {
// worker-loader v3 defaults to output.publicPath here,
// which causes worker.js to be included in the bundle
// in R2. This in turn causes CSP to fail when loading
// the worker.
// So, we explicitly ask to include it in the webapp
// dir.
publicPath: "webapp",
},
},
{
test: /\.(ts|js)x?$/,