oxc/crates/oxc_module_lexer
github-actions[bot] 714bf1dd7f
Release crates v0.19.0 (#4137)
## [0.19.0] - 2024-07-09

- b936162 ast/ast_builder: [**BREAKING**] Shorter allocator utility
method names. (#4122) (rzvxa)

### Features

- 485c871 ast: Allow conversion from `Expression` into `Statement` with
`FromIn` trait. (#4124) (rzvxa)

### Refactor

Co-authored-by: Boshen <Boshen@users.noreply.github.com>
2024-07-09 20:32:06 +08:00
..
examples chore: make println and eprintln opt-in (#3712) 2024-06-17 10:40:34 +00:00
src feat(ast)!: add IdentifierReference to ExportSpecifier (#3820) 2024-06-22 11:43:41 +00:00
tests chore: improve some format by running cargo +nightly fmt 2024-06-19 00:48:30 +08:00
Cargo.toml Release crates v0.19.0 (#4137) 2024-07-09 20:32:06 +08:00
CHANGELOG.md Release crates v0.16.0 (#3930) 2024-06-27 20:38:31 +08:00
README.md New tool: oxc_module_lexer (#2650) 2024-03-09 23:23:55 +08:00

Oxc Module Lexer

This is not a lexer. The name "lexer" is used for easier recognition.

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 mentioned in es-module-lexer.

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).