Commit de4eaddffd7d826f6b5d1cab05627bcae0183b0f

Authored by Vinton
Committed by GitHub
1 parent e1804bd8

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

Co-authored-by: huangwentao <huangwentao@dianchu.com>
Showing 1 changed file with 5 additions and 5 deletions
build/utils.ts
... ... @@ -36,11 +36,11 @@ export function wrapperEnv(envConf: Recordable): ViteEnv {
36 36 }
37 37 }
38 38 ret[envName] = realName;
39   - if (typeof realName === 'string') {
40   - process.env[envName] = realName;
41   - } else if (typeof realName === 'object') {
42   - process.env[envName] = JSON.stringify(realName);
43   - }
  39 + // if (typeof realName === 'string') {
  40 + // process.env[envName] = realName;
  41 + // } else if (typeof realName === 'object') {
  42 + // process.env[envName] = JSON.stringify(realName);
  43 + // }
44 44 }
45 45 return ret;
46 46 }
... ...