fix: ensure wasm module matches frontend build#101
fix: ensure wasm module matches frontend build#101Myriad-Dreamin merged 1 commit intoMyriad-Dreamin:mainfrom
Conversation
|
Thank you for contribution. It should help develop with locally built WASM. The weird point is that we want to make
|
I think there is another way to go but it would require users to have yarn installed on their machine. We can remove the independent build script and build the frontend in build.rs. POC: |
|
Sorry I don't know the reason but I thought you requested to merge kxxt@1453507. I think it is okay to copy the wasm module in |
The frontend is built against the
typst_ts_renderer_bg.wasminstalled in node_modules. However, the cli ships a prebuilttypst_ts_renderer_bg.wasmfrom https://github.com/Myriad-Dreamin/typst/tree/assets-book-v0.2.0 . This mismatch can cause wasm load failures(#100).This PR fixes it by copying the wasm module from node_modules to ensure a single source of truth for
typst_ts_renderer_bg.wasm.Fix #100