guybedford / es-module-lexer

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

Doesn't detect `import.meta` when `...import.meta` #145

Closed sapphi-red closed 1 year ago

sapphi-red commented 1 year ago

import.meta doesn't get detected when it has ... in front.

console.log([...import.meta.url]);

reproduction: https://stackblitz.com/edit/node-zmajrl?file=index.js