guybedford / es-module-lexer

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

Better parse errors #30

Closed guybedford closed 5 years ago

guybedford commented 5 years ago

The parse function can now take a source name and properly returns the line and column. It adds a few bytes but seems worth it.