guybedford / es-module-lexer

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

Support source phase imports #166

Closed guybedford closed 4 months ago

guybedford commented 5 months ago

Necessary to support the source phase in es-module-shims.

We can implement this as a new negative import d field numbering, say -3.

guybedford commented 4 months ago

Shipped in https://github.com/guybedford/es-module-lexer/pull/168.