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