mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Specify the filename for worker-loader to avoid bundling workers
This commit is contained in:
parent
d684f7f336
commit
8d4215557a
@ -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?$/,
|
||||
|
Loading…
Reference in New Issue
Block a user