mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 20:28:58 +00:00
# Oxc Module Lexer This is not a lexer. The name "lexer" is used for easier recognition. ## [es-module-lexer](https://github.com/guybedford/es-module-lexer) Outputs the list of exports and locations of import specifiers, including dynamic import and import meta handling. Does not have any [limitations](https://github.com/guybedford/es-module-lexer?tab=readme-ov-file#limitations) mentioned in `es-module-lexer`. I'll also work on the following cases to make this feature complete. - [ ] get imported variables https://github.com/guybedford/es-module-lexer/issues/163 - [ ] track star exports as imports as well https://github.com/guybedford/es-module-lexer/issues/76 - [ ] TypeScript specific syntax - [ ] TypeScript `type` import / export keyword ## [cjs-module-lexer](https://github.com/nodejs/cjs-module-lexer) - [ ] TODO ## Benchmark This is 2 times slower than `es-module-lexer`, but will be significantly faster when TypeScript is processed. The difference is around 10ms vs 20ms on a large file (700k).
33 lines
744 B
JSON
33 lines
744 B
JSON
{
|
|
"name": "@oxc-parser/binding",
|
|
"private": true,
|
|
"scripts": {
|
|
"build": "napi build --platform --release",
|
|
"test": "node test.mjs"
|
|
},
|
|
"devDependencies": {
|
|
"@napi-rs/cli": "^2.18.0",
|
|
"es-module-lexer": "^1.4.1",
|
|
"flatbuffers": "^23.5.26"
|
|
},
|
|
"engines": {
|
|
"node": ">=14.*"
|
|
},
|
|
"packageManager": "pnpm@8.2.0",
|
|
"napi": {
|
|
"name": "parser",
|
|
"triples": {
|
|
"defaults": false,
|
|
"additional": [
|
|
"x86_64-pc-windows-msvc",
|
|
"aarch64-pc-windows-msvc",
|
|
"x86_64-unknown-linux-gnu",
|
|
"aarch64-unknown-linux-gnu",
|
|
"x86_64-unknown-linux-musl",
|
|
"aarch64-unknown-linux-musl",
|
|
"x86_64-apple-darwin",
|
|
"aarch64-apple-darwin"
|
|
]
|
|
}
|
|
}
|
|
}
|