npm.io
0.264.0 • Published 8h ago

@vizejs/native

Licence
MIT
Version
0.264.0
Deps
0
Size
96 kB
Vulns
0
Weekly
0

@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

Install vp once from the Vite+ install guide, then add the package:

vp install @vizejs/native

Usage

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

Keywords