oxc_module_lexer

Crates.iooxc_module_lexer
lib.rsoxc_module_lexer
version0.38.0
sourcesrc
created_at2024-03-09 15:26:13.657693
updated_at2024-11-26 06:46:32.864439
descriptionA collection of JavaScript tools written in Rust.
homepagehttps://oxc.rs
repositoryhttps://github.com/oxc-project/oxc
max_upload_size
id1167907
size33,452
Boshen (Boshen)

documentation

README

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

Commit count: 7284

cargo fmt