npm.io
1.15.46 • Published 2d ago

@swc/nodejs-support-wasm

Licence
Apache-2.0
Version
1.15.46
Deps
0
Size
3.6 MB
Vulns
0
Weekly
0
Stars
34.1K

@swc/nodejs-support-wasm

This package provides a standalone WebAssembly binding for Node.js integrations. Its Rust crate, source, build, and test setup are independent from @swc/wasm-typescript.

It includes the TypeScript transform API from @swc/wasm-typescript and additional helpers for module syntax transformation, assertion locations, and syntax validation.

API

  • transform and transformSync
  • transformModuleSyntax
  • getFirstExpression
  • isValidSyntax
  • isRecoverableError

Contributing

See the main repository's contributing guide.

License

Apache 2.0