diff --git a/.github/workflows/build-revive-wasm.yml b/.github/workflows/build-revive-wasm.yml index 79556ee..dac7c3e 100644 --- a/.github/workflows/build-revive-wasm.yml +++ b/.github/workflows/build-revive-wasm.yml @@ -87,7 +87,7 @@ jobs: path: | ${{ env.REVIVE_WASM_INSTALL_DIR }}/resolc.js ${{ env.REVIVE_WASM_INSTALL_DIR }}/resolc.wasm - ${{ env.REVIVE_WASM_INSTALL_DIR }}/resolc_packed.js + ${{ env.REVIVE_WASM_INSTALL_DIR }}/resolc_loader.js retention-days: 1 test-revive-wasm: diff --git a/js/build.js b/js/build.js index 2193e4a..14ac039 100644 --- a/js/build.js +++ b/js/build.js @@ -10,7 +10,7 @@ const RESOLC_WASM_TARGET_DIR = path.join( "../target/wasm32-unknown-emscripten/release", ); const RESOLC_JS = path.join(RESOLC_WASM_TARGET_DIR, "resolc.js"); -const RESOLC_JS_PACKED = path.join(RESOLC_WASM_TARGET_DIR, "resolc_packed.js"); +const RESOLC_LOADER_JS = path.join(RESOLC_WASM_TARGET_DIR, "resolc_loader.js"); const resolcJs = fs.readFileSync(RESOLC_JS, "utf-8"); @@ -44,8 +44,8 @@ minify(packedJsContent) process.exit(1); } - fs.writeFileSync(RESOLC_JS_PACKED, minifiedJs.code, "utf-8"); - console.log(`Combined script written to ${RESOLC_JS_PACKED}`); + fs.writeFileSync(RESOLC_LOADER_JS, minifiedJs.code, "utf-8"); + console.log(`Combined script written to ${RESOLC_LOADER_JS}`); }) .catch((err) => { console.error("Minification failed:", err); diff --git a/js/examples/web/resolc_loader.js b/js/examples/web/resolc_loader.js new file mode 120000 index 0000000..5d5272a --- /dev/null +++ b/js/examples/web/resolc_loader.js @@ -0,0 +1 @@ +../../../target/wasm32-unknown-emscripten/release/resolc_loader.js \ No newline at end of file diff --git a/js/examples/web/resolc_packed.js b/js/examples/web/resolc_packed.js deleted file mode 120000 index a29d3c1..0000000 --- a/js/examples/web/resolc_packed.js +++ /dev/null @@ -1 +0,0 @@ -../../../target/wasm32-unknown-emscripten/release/resolc_packed.js \ No newline at end of file diff --git a/js/examples/web/worker.js b/js/examples/web/worker.js index e066a22..86c5d0c 100644 --- a/js/examples/web/worker.js +++ b/js/examples/web/worker.js @@ -1,4 +1,4 @@ -importScripts("./resolc_packed.js"); +importScripts("./resolc_loader.js"); // Handle messages from the main thread onmessage = async function (e) {