kaleidawave / ezno

A JavaScript compiler and TypeScript checker written in Rust with a focus on static analysis and runtime performance
https://kaleidawave.github.io/posts/introducing-ezno/
MIT License
2.3k stars 42 forks source link

Parsing import meta #140

Closed Brayan-724 closed 1 month ago

Brayan-724 commented 1 month ago

There's no implementations for import meta. It is trying to parse as dynamic import.

error:
  ┌─ file.ts:1:23
  │
1 │ const isProduction = import.meta.env.PROD;
  │                       ^ Expected OpenParentheses found Dot