guybedford / es-module-lexer

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

fix: default export detections #141

Closed guybedford closed 1 year ago

guybedford commented 1 year ago

This fixes the default export detections to properly distinguish static local names from dynamic ones and not to detect dynamic ones.

It also fixes a parsing bug with the backtracking on bad detection cases.

Resolves https://github.com/guybedford/es-module-lexer/issues/140.