From cd2dda268f9fd4bdb3ac83d8f66d980e7f26c90d Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 11 Mar 2021 22:06:11 -0700 Subject: [PATCH] Add webpack config for opus-recorder worker --- webpack.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 2500792139..a1a248e391 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -252,6 +252,16 @@ module.exports = (env, argv) => { outputPath: '.', }, }, + { + test: /encoderWorker\.min\.js$/, + loader: "file-loader", + type: "javascript/auto", // https://github.com/webpack/webpack/issues/6725 + options: { + // We deliberately override the name so it makes sense in debugging + name: 'opus-encoderWorker.min.[hash:7].[ext]', + outputPath: '.', + }, + }, { // cache-bust languages.json file placed in // element-web/webapp/i18n during build by copy-res.js