OxiPNG + threads PoC

This commit is contained in:
Ingvar Stepanyan
2020-04-25 14:28:16 +01:00
committed by Ingvar Stepanyan
parent 685558847f
commit 4c658b79ef
15 changed files with 398 additions and 68 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: /_bg\.wasm$/,
exclude: /(?<!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: /_bg\.wasm$/,
test: /(?<!oxipng)_bg\.wasm$/,
type: 'webassembly/experimental',
},
{