Update paths

This commit is contained in:
Ingvar Stepanyan
2020-09-24 02:18:40 +01:00
parent 5ae65e3cf2
commit fdc9aac976
2 changed files with 4 additions and 3 deletions

View File

@@ -149,7 +149,7 @@ module.exports = async function(_, env) {
{
// Emscripten modules don't work with Webpack's Wasm loader.
test: /\.wasm$/,
exclude: /(?<!oxipng)_bg\.wasm$/,
exclude: /(?<!\bsquoosh_oxipng)_bg\.wasm$/,
// This is needed to make webpack NOT process wasm files.
// See https://github.com/webpack/webpack/issues/6725
type: 'javascript/auto',
@@ -160,7 +160,7 @@ module.exports = async function(_, env) {
},
{
// Wasm modules generated by Rust + wasm-pack work great with Webpack.
test: /(?<!oxipng)_bg\.wasm$/,
test: /(?<!\bsquoosh_oxipng)_bg\.wasm$/,
type: 'webassembly/experimental',
},
{