From 5bdf5fc66f001d576980c9a8583bf7ef1bf1e3f0 Mon Sep 17 00:00:00 2001 From: Petter Rasmussen Date: Sun, 29 Oct 2023 13:28:13 +0100 Subject: [PATCH] Make patch work with release --- src/rust_builder.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rust_builder.rs b/src/rust_builder.rs index dd759b6..8ee0386 100644 --- a/src/rust_builder.rs +++ b/src/rust_builder.rs @@ -246,6 +246,7 @@ impl RustBuilder { let new_content = content .replace("const { TextDecoder, TextEncoder } = require(`util`);", "") + .replace("const { TextEncoder, TextDecoder } = require(`util`);", "") .replace("const bytes = require('fs').readFileSync(path);", "") .replace("const wasmModule = new WebAssembly.Module(bytes);", "") .replace(