diff --git a/webpack.config.js b/webpack.config.js index dce54b53f3..0840451c59 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -236,6 +236,11 @@ module.exports = (env, argv) => { { test: /\.worker\.ts$/, loader: "worker-loader", + options: { + // Prevent bundling workers since CSP forbids loading them + // from another origin. + filename: "[hash].worker.js", + }, }, { test: /\.(ts|js)x?$/,