guybedford / es-module-lexer

Low-overhead lexer dedicated to ES module parsing for fast analysis
MIT License
933 stars 48 forks source link

feat: ESM detection support #160

Closed sapphi-red closed 1 year ago

sapphi-red commented 1 year ago

close #159

I added the fourth return value that returns whether the code includes ESM syntaxes.

I didn't change https://github.com/guybedford/es-module-lexer/blob/main/lexer.js. Is this file used?

guybedford commented 1 year ago

lexer.js is an old browser build that is no longer maintained, although the tests can be run manually. It should probably just be removed at this point.