guybedford / es-module-lexer

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

fix: export default export name bug #139

Closed guybedford closed 2 years ago

guybedford commented 2 years 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.