Rename resolc_packed to resolc_loader

This commit is contained in:
Sebastian Miasojed
2025-02-11 10:04:14 +01:00
parent 1187317fd2
commit 646da0f17c
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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:
+3 -3
View File
@@ -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);
+1
View File
@@ -0,0 +1 @@
../../../target/wasm32-unknown-emscripten/release/resolc_loader.js
-1
View File
@@ -1 +0,0 @@
../../../target/wasm32-unknown-emscripten/release/resolc_packed.js
+1 -1
View File
@@ -1,4 +1,4 @@
importScripts("./resolc_packed.js");
importScripts("./resolc_loader.js");
// Handle messages from the main thread
onmessage = async function (e) {