- TypeScript 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| src | ||
| .gitignore | ||
| bun.lock | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| tsdown.config.ts | ||
Features
A ton of tweaks is applied to the bundle made by wasm-pack.
- Embedded WASM in the JS bundle
- No need to execute any
init()function to load the WASM - Simplified DTS and removed
wasm-packnoise package.jsongenerated usingCargo.tomlproperties
Requirements
You should have the following tools globally available.
Usage
Once you've set up the registry, you can call the CLI from npx.
npx @mentor/wasm@latest
You should see the final results in an exported directory.
You can directly upload this directory to npm as a package.
Keys in Cargo.toml
You can customize the output by updating your Cargo.toml of your WASM crate.
[package.metadata.npm]
name = "@unilim/cas" # name of your package
If you're using external npm dependencies you can also define them here.
[package.metadata.npm.dependencies]
"@unilim/cas" = "^3.0.0"