guybedford / es-module-lexer

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

feat: skip trailing white space in dynamic import #162

Closed sapphi-red closed 1 year ago

sapphi-red commented 1 year ago

close #118

I'm not sure if this is always correct.

guybedford commented 1 year ago

I'm not sure this works either, it could be worth adding some edge cases for various parse goals to verify further.

sapphi-red commented 1 year ago

I added some more test cases that I can think of.

guybedford commented 1 year ago

Nice work, I can't think of any edge cases actually. Will release and let's see if anything comes up further.