guybedford / es-module-lexer

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

fix: export default export name bug #139

Closed guybedford closed 1 year ago

guybedford commented 1 year ago

Resolves https://github.com/guybedford/es-module-lexer/issues/138, ensuring that when we don't match the detected patterns we properly revert to the last safe token.