Ver código fonte

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

Co-authored-by: huangwentao <huangwentao@dianchu.com>
Vinton 2 anos atrás
pai
commit
de4eaddffd
1 arquivos alterados com 5 adições e 5 exclusões
  1. 5 5
      build/utils.ts

+ 5 - 5
build/utils.ts

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