Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MathiasWP opened this issue May 11, 2023 · 1 comment
Open

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

MathiasWP opened this issue May 11, 2023 · 1 comment

Comments

@MathiasWP
Copy link

Is this expected behaviour?

@guybedford
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants