You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
When building from TS for production with
I'm getting warning
[plugin:vite:esbuild] "import.meta" is not available in the configured target environment ("es2018") and will be empty
.So, instead of replacing
import.meta.MY_VAR
with values from .env file, i've got something like this in dist :Reproduction
https://stackblitz.com/edit/vue3-vite-typescript-starter-qkcqjq?file=dist%2Fassets%2Findex-DPWZdT5y.js
Steps to reproduce
npm install && npm run build
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: