From 0388bde54013afa45cbc7410232dd6d14bf2d2e7 Mon Sep 17 00:00:00 2001 From: Jake Archibald Date: Thu, 21 Feb 2019 12:48:09 +0000 Subject: [PATCH] Missed these --- webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index d7536e30..b34e8c5a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -149,11 +149,11 @@ module.exports = async function (_, env) { }, { // All the codec files define a global with the same name as their file name. `exports-loader` attaches those to `module.exports`. - test: /\/codecs\/.*\.js$/, + test: new RegExp(`${regexpPathSep}codecs${regexpPathSep}.*\.js`), loader: 'exports-loader' }, { - test: /\/codecs\/.*\.wasm$/, + test: new RegExp(`${regexpPathSep}codecs${regexpPathSep}.*\.wasm`), // This is needed to make webpack NOT process wasm files. // See https://github.com/webpack/webpack/issues/6725 type: 'javascript/auto',