fix: NODE_ENV is incorrect in vite 4.x
This commit is contained in:
parent
6676f60aae
commit
d086e0d51a
|
@ -98,9 +98,7 @@ export async function resolveConfig(
|
||||||
|
|
||||||
config.mode = mode
|
config.mode = mode
|
||||||
|
|
||||||
if (mode === 'production') {
|
process.env.NODE_ENV = defaultMode
|
||||||
process.env.NODE_ENV = 'production'
|
|
||||||
}
|
|
||||||
|
|
||||||
let userConfig: UserConfig | undefined
|
let userConfig: UserConfig | undefined
|
||||||
let configFileDependencies: string[] = []
|
let configFileDependencies: string[] = []
|
||||||
|
|
Loading…
Reference in a new issue