@mentor/wasm (1.3.0)
Installation
@mentor:registry=npm install @mentor/wasm@1.3.0"@mentor/wasm": "1.3.0"About this package
Features
A ton of tweaks is applied to the bundle made by wasm-pack.
package.jsongenerated usingCargo.tomlproperties- Embedded WASM in the bundle so need to
init()anything - Simplified
d.tsand less noise
Requirements
You should have the following tools globally available.
Usage
You can either use this package through its own registry or through ants.land.
# you should configure `@mentor` registry.
npx @mentor/wasm
bun x @mentor/wasm
# it is published on `ants.land` officially.
ant x @mentor/wasm
You should see the final results in an exported directory.
You can publish this directory to any registry 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
features = ["npm"] # cargo features enabled when compiling the wasm crate
If you're using external npm dependencies you can also define them here.
[package.metadata.npm.dependencies]
"@unilim/cas" = "^3.0.0"
Dependencies
Dependencies
| ID | Version |
|---|---|
| esbuild | ^0.28.2 |
Development dependencies
| ID | Version |
|---|---|
| @types/node | ^26.4.0 |
| @typescript/native | npm:typescript@^7.0.2 |
| @vexcited/eslint-config | ^0.3.0 |
| eslint | ^10.8.0 |
| smol-toml | ^1.8.0 |
| tsdown | ^0.22.12 |
| typescript | npm:@typescript/typescript6@^6.0.2 |
Details
Assets (1)
Versions (5)
View all
wasm-1.3.0.tgz
7.8 KiB