There are 2 tests in oxc_parser which take an extremely long time to run under Miri. Skip them. These 2 tests don't really exercise the unsafe code in lexer much anyway. Locally, this cuts down tim...
Clear and concise description of the problem Use Oxc-Parser replace @babel/parser Suggested solution https://x.com/boshen_c/status/1850179017862959128 Alternative No response Additional context No response Validations Follow our Code of ...
## Installation. Latest version: 0.0.0, last published: 2 months ago. Start using oxc-eslint-parser in your project by running `npm i oxc-eslint-parser`. There are no other projects in the npm registry using oxc-eslint-parser.
oxc-parser 2024年11月10日 柏拉文 越努力,越幸运 一、parseSync() 1.1 认识 parseSync()同步解析JavaScript源代码,返回AST(抽象语法树)。 1.2 语法 constoxcParser=require("oxc-parser"); const{parseSync}=oxcParser; constparse=(sourceCode)=>{...
oxc:氧化编译器是一套高性能的 JS/TS 工具,声称拥有用 Rust 编写的最快且最符合标准的解析器。 Node-API性能特性 在深入基准测试之前,让我们先回顾一下基于 Node-API 的原生插件的性能特征。 Node-API 优点: 更好的编译器优化:原生语言中的代码具有紧凑的数据布局,产生更少的 CPU 指令。
fix: use @oxc-parser/wasm in stackblitz env aa38d2b BobbieGoede self-assigned this Mar 3, 2025 BobbieGoede added the cr-tracked label Mar 3, 2025 fix: move to prod deps d08dfb0 pkg-pr-new bot commented Mar 3, 2025 • edited npm i https://pkg.pr.new/@nuxtjs/i18n@3388 ...
oxc-transform oxc-types oxc-wasm oxlint parser-wasm tasks wasm .clippy.toml .editorconfig .git-blame-ignore-revs .gitignore .ignore .node-version .rustfmt.toml .typos.toml CHANGELOG.md CONTRIBUTING.md Cargo.lock Cargo.toml Cross.toml
At present, NPM package oxc-parser's parse* methods return an object including AST as JSON string. I propose: Alter parseSync and parseAsync to call JSON.parse on the JSON by default, so they return AST as a JS object. Add an option json: true to return JSON string instead (as at ...
The rolldown need to support rolldown/parseAst,it need to export oxc_parser_napi bindings. ref rolldown/rolldown#3208underfin added the C-enhancement label Dec 26, 2024 Boshen self-assigned this Dec 26, 2024 Sign up for free to join this conversation on GitHub. Already have an account?
import{parseSync}from'oxc-parser';import{parseAst}from'rolldown/parseAst';letcode=`/regex/; 1n;`;console.log('=== oxc-parser: parseSync ===');console.dir(parseSync('test.js',code).program,{depth:10});console.log('=== roldown/parseAst: parseAst ');console.dir(parseAst(code),...