Package Exports
- @vizejs/native
- @vizejs/native/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@vizejs/native) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@vizejs/native
Native Node.js bindings for the Vize Vue compiler via NAPI.
Features
- Maximum Performance - Native Rust speed in Node.js
- Multi-threaded - Parallel compilation support
- Low Overhead - Direct NAPI bindings, no IPC
Installation
npm install @vizejs/nativeUsage
import { compile, compileFiles } from "@vizejs/native";
// Single file
const result = compile(source, { filename: "App.vue" });
// Multiple files (parallel)
const results = compileFiles(["src/App.vue", "src/components/Button.vue"], { threads: 4 });Platform Support
| Platform | Architecture | Status |
|---|---|---|
| Linux | x64, arm64 | ✓ |
| macOS | x64, arm64 | ✓ |
| Windows | x64 | ✓ |
License
MIT