Replies: 1 comment
-
If it throws an error like bus error, it's very likely #5060 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I extended the official @swc/plugin-transform-imports plugin for my project. When I run
cargo test
during local development, everything works fine.However, when I build it to a WASM file and publish it as an npm package, I encounter an issue. When I run
npx swc ./test.js -o temp2.js --config-file .swcrc
for testing, it fails with the error:[1] 49221 bus error npx swc ./test.js -o temp2.js --config-file .swcrc
.I tried adding some code to write logs to a local file, but nothing appears. It seems that WASM does not have permission to write logs to local files.
Does anyone know how to debug a WASM file?
Beta Was this translation helpful? Give feedback.
All reactions