WARPO is a next-generation AssemblyScript compiler designed to seamlessly migrate TypeScript code to WebAssembly modules. Built as an alternative to the original AssemblyScript compiler, WARPO introduces advanced optimizations and improved developer experience. The current stable version is 3.0.0, released with active development and a focus on performance and compatibility. It leverages Binaryen for WebAssembly optimizations and provides a modern ESM-based API. Key differentiators include better TypeScript integration, enhanced optimization passes, and a streamlined compilation pipeline.
npm install warpoNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compile a TypeScript source file to WebAssembly using the default compiler factory with optimization enabled.
Switch to 'import' syntax or use a transpiler (e.g., esbuild) for CommonJS projects.
Use 'optimize' instead of 'optimizeModule'.
Import 'optimize' from the main package: 'import { optimize } from 'warpo'.Call warpo() to get a compiler instance before calling compile().
Use 'import type { CompileOptions } from 'warpo' to avoid bundling issues.Switch to import syntax or set { "type": "module" } in package.json.const compiler = warpo(); then call compiler.compile().
Import 'optimize' from the main package: 'import { optimize } from 'warpo'.