update
This commit is contained in:
@@ -10,7 +10,7 @@ npm i wasm-tools
|
||||
|
||||
## CLI
|
||||
|
||||
- `wasm-to-js`
|
||||
- `wasm-to-js` (options: `--format`, `--platform`, `--sync`, `--minify`)
|
||||
- `wasm-to-wat`
|
||||
- `wat-to-js`
|
||||
- `wat-to-wasm`
|
||||
@@ -38,6 +38,7 @@ wat-to-wasm input.wat output.wasm
|
||||
## Best Practices
|
||||
|
||||
- Validate output with wasm runtimes after conversion.
|
||||
- Use `--sync` only when synchronous loading is required.
|
||||
|
||||
## Performance
|
||||
|
||||
@@ -54,6 +55,7 @@ wat-to-wasm input.wat output.wasm
|
||||
## Integration
|
||||
|
||||
- Useful in build pipelines and bundlers.
|
||||
- Pair with `esbuild` for JS bundling.
|
||||
|
||||
## License
|
||||
|
||||
|
||||
Reference in New Issue
Block a user