Merge pull request #24156 from andybalaam/andybalaam/fix-wrong-worker-path

Revert "Explicitly set worker-loader's publicPath to webapp"
This commit is contained in:
Andy Balaam 2023-01-04 11:18:54 +00:00 committed by GitHub
commit 411b40a59c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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?$/,