#ast #parser #vue #oxc

vue_oxc_toolkit

A parser to generate semantically correct AST from Vue SFCs for code linting purposes

19 releases (10 breaking)

Uses new Rust 2024

new 0.10.0 Apr 7, 2026
0.9.1 Mar 11, 2026
0.8.2 Feb 27, 2026

#1329 in Parser implementations

MIT license

125KB
1.5K SLoC

vue_oxc_toolkit

A high-performance toolkit to generate semantically correct AST from Vue SFCs for code linting purposes.

Features

  • Full SFC Parsing: Support for both composition and options API. Support parsing <template> block and TypeScript code as well.
  • JSX/TSX Transformation: Transforms Vue templates into OXC-compatible JSX/TSX AST, enabling deep semantic analysis.
  • Linter Ready: Automatically generates metadatas which are required by oxc_linter (such asmodule_record and irregular_whitespaces).
  • High Performance: Complete the AST transformation in a single traversal.
  • Error Handling: Collect the errors from both vue-compiler-rs and oxc-parser. Implement similar paincked logic like oxc-parser

Credits

This project includes a fork of vue-oxc-parser originally created by zhiyuanzmj.

This project depends on vue-compiler-rs which provides underlying support for Vue parsing.

Dependencies

~13–24MB
~314K SLoC