There was an error while loading. Please reload this page.
1 parent c49e8ed commit f5fea0bCopy full SHA for f5fea0b
webpack.config.js
@@ -236,6 +236,15 @@ module.exports = (env, argv) => {
236
{
237
test: /\.worker\.ts$/,
238
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
+ },
248
},
249
250
test: /\.(ts|js)x?$/,
0 commit comments