guybedford / es-module-lexer

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

feat: ESM detection support #160

Closed sapphi-red closed 8 months ago

sapphi-red commented 8 months 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 8 months 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.