es-module-lexer icon indicating copy to clipboard operation
es-module-lexer copied to clipboard

Finds "import.meta.vitest" but defines import as undefined

Open MathiasWP opened this issue 2 years ago • 1 comments

Is this expected behaviour?

MathiasWP avatar May 11 '23 13:05 MathiasWP

Yes, this is by design - import.meta is detected as having a import.d === -2 value, and offsets are provided, but parsing of properties must be handled manually due to es-module-lexer not including an expression or property parser.

guybedford avatar May 14 '23 20:05 guybedford