3 ms·
> TypeScript->WASM You could just use this project in a build pipeline: 1. Write TypeScript until compiler shows no errors 2a. Compile TypeScript 2b. Just str
by smt88 4y ago
> TypeScript->WASM
You could just use this project in a build pipeline:
1. Write TypeScript until compiler shows no errors
2a. Compile TypeScript
2b. Just strip out TypeScript types
3. Compile JavaScript to WASM
It would be a one-time change to your build config.
- rektide 4y agoGood suggestion! Yes! It wouldnt really be helpful building libraries that other wasm modules could use though (at least not in the near-future when component-model starts showing up). The types are important for wasm, & losing them prevents interoperability.