Disable automatic publicPath to unbreak worklets

pull/26229/head
Johannes Marbach 2023-11-12 12:23:36 +01:00
parent 0584c39a70
commit 91f46cc8f4
1 changed files with 4 additions and 0 deletions

View File

@ -737,6 +737,10 @@ module.exports = (env, argv) => {
filename: "bundles/[hash]/[name].js", filename: "bundles/[hash]/[name].js",
chunkFilename: "bundles/[hash]/[name].js", chunkFilename: "bundles/[hash]/[name].js",
webassemblyModuleFilename: "bundles/[hash]/[modulehash].wasm", webassemblyModuleFilename: "bundles/[hash]/[modulehash].wasm",
// Disable automatic public path as it doesn't appear to function with
// worklets in Webpack 5
publicPath: "",
}, },
// configuration for the webpack-dev-server // configuration for the webpack-dev-server