Replace worker-loader with built-in Webpack 5 support for web workers

This commit is contained in:
Johannes Marbach
2023-11-11 16:08:30 +01:00
parent 3e03b2ea29
commit 069c1bc833
3 changed files with 0 additions and 18 deletions
-9
View File
@@ -292,15 +292,6 @@ module.exports = (env, argv) => {
replace: getThemesImports(),
},
},
{
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?$/,
include: (f) => {