Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit b275e48

Browse files
author
Wenjie Xia
committed
chore(compiler): rebuild wasm
1 parent 63caa9d commit b275e48

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

compiler/dist/wasm-checksum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const checksum = "8c8672abb23f6a74f64d453dbbfe64c9ccd18cd8"
1+
export const checksum = "778091884c8cda7b9fb6fad155cb18b4879dc917"

compiler/dist/wasm-pack.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
import log from "../../shared/log.ts";
22
let wasm;
33

44
const heap = new Array(32).fill(undefined);
@@ -187,7 +187,15 @@ async function init(input) {
187187
};
188188
imports.wbg.__wbg_error_4bb6c2a97407129a = function(arg0, arg1) {
189189
try {
190-
console.error(getStringFromWasm0(arg0, arg1));
190+
191+
const msg = getStringFromWasm0(arg0, arg1);
192+
if (msg.includes("DiagnosticBuffer")) {
193+
const diagnostic = msg.split('DiagnosticBuffer(["')[1].split('"])')[0]
194+
log.error("swc:", diagnostic)
195+
} else {
196+
log.error(msg)
197+
}
198+
191199
} finally {
192200
wasm.__wbindgen_free(arg0, arg1);
193201
}

compiler/dist/wasm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)