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.
wgottschalk
changed the title
Command: define field overwrites values inside of strings
Define field in vite.config overwrites values inside of strings
Aug 18, 2022
Describe the bug
Given an import such as:
import { something } from './process';
And my vite config defines a value that matches a subset of the import path:
When I build my app with the command:
vite build
Then I get the following error:
It appears Vite is substituting the value of
process
even though it's defined inside of a string.Expected Behavior: values inside of the string
Reproduction
https://stackblitz.com/edit/vitejs-vite-sf6mch?file=main.js
System Info
stackblitz:
Validations
The text was updated successfully, but these errors were encountered: