mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21: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).
32 lines
843 B
YAML
32 lines
843 B
YAML
lockfileVersion: '6.0'
|
|
|
|
devDependencies:
|
|
'@napi-rs/cli':
|
|
specifier: ^2.18.0
|
|
version: 2.18.0
|
|
es-module-lexer:
|
|
specifier: ^1.4.1
|
|
version: 1.4.1
|
|
flatbuffers:
|
|
specifier: ^23.5.26
|
|
version: 23.5.26
|
|
|
|
packages:
|
|
|
|
/@napi-rs/cli@2.18.0:
|
|
resolution: {integrity: sha512-lfSRT7cs3iC4L+kv9suGYQEezn5Nii7Kpu+THsYVI0tA1Vh59LH45p4QADaD7hvIkmOz79eEGtoKQ9nAkAPkzA==}
|
|
engines: {node: '>= 10'}
|
|
hasBin: true
|
|
dev: true
|
|
|
|
/es-module-lexer@1.4.1:
|
|
resolution: {integrity: sha512-cXLGjP0c4T3flZJKQSuziYoq7MlT+rnvfZjfp7h+I7K9BNX54kP9nyWvdbwjQ4u1iWbOL4u96fgeZLToQlZC7w==}
|
|
dev: true
|
|
|
|
/flatbuffers@23.5.26:
|
|
resolution: {integrity: sha512-vE+SI9vrJDwi1oETtTIFldC/o9GsVKRM+s6EL0nQgxXlYV1Vc4Tk30hj4xGICftInKQKj1F3up2n8UbIVobISQ==}
|
|
dev: true
|
|
|
|
settings:
|
|
autoInstallPeers: true
|
|
excludeLinksFromLockfile: false
|