From 0da52d75e72a5d2040f67580729b19185736e3b4 Mon Sep 17 00:00:00 2001 From: Step7750 Date: Sat, 21 Feb 2026 00:34:36 -0700 Subject: [PATCH] Fixes Double Copy of WASM TLSN Wasm is ~16MB, current setup was copying the file twice into the build. This change switches to prevent a hash rename for `tlsn_wasm_bg.wasm` while still copying the `.js` files. --- webpack.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 3772638..9cbcf1a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -95,6 +95,13 @@ module.exports = (env) => { replacement: resolve('./src/environment.dev.ts'), }, }, + { + test: /tlsn_wasm_bg\.wasm$/, + type: 'asset/resource', + generator: { + filename: 'tlsn_wasm_bg.wasm', + }, + }, ], }, plugins: [ @@ -111,7 +118,7 @@ module.exports = (env) => { {from: 'README.md', to: '', context: '.'}, {from: 'src/popup/popup.html', to: 'src/', context: '.'}, {from: 'src/offscreen/offscreen.html', to: 'src/', context: '.'}, - {from: 'node_modules/@csfloat/tlsn-wasm/*.{wasm,js}', to: '[name][ext]'}, + {from: 'node_modules/@csfloat/tlsn-wasm/*.js', to: '[name][ext]'}, {from: 'node_modules/@csfloat/tlsn-wasm/snippets', to: 'snippets/', context: '.'}, { from: 'manifest.json',