fix: 注释build/util文件中的代码,修复热更新无效的问题 (#2551)

Co-authored-by: huangwentao <huangwentao@dianchu.com>
This commit is contained in:
Vinton
2023-02-15 11:42:50 +08:00
committed by GitHub
parent e1804bd866
commit de4eaddffd

View File

@@ -36,11 +36,11 @@ export function wrapperEnv(envConf: Recordable): ViteEnv {
} }
} }
ret[envName] = realName; ret[envName] = realName;
if (typeof realName === 'string') { // if (typeof realName === 'string') {
process.env[envName] = realName; // process.env[envName] = realName;
} else if (typeof realName === 'object') { // } else if (typeof realName === 'object') {
process.env[envName] = JSON.stringify(realName); // process.env[envName] = JSON.stringify(realName);
} // }
} }
return ret; return ret;
} }