guybedford / es-module-lexer

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

Source phase imports #168

Closed guybedford closed 4 months ago

guybedford commented 4 months ago

This adds support for source phase imports parsing, both for static and dynamic imports.

A new type field is added to the imports analysis to support this and to also support any new import types in future as well.