From 647999e576ab0fbccb77c785ce8a3330f9a194da Mon Sep 17 00:00:00 2001 From: dengqing Date: Fri, 20 May 2022 23:40:11 +0800 Subject: [PATCH] fix: vitest set NODE_ENV causes the test to fail --- playground/optimize-deps/vite.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playground/optimize-deps/vite.config.js b/playground/optimize-deps/vite.config.js index 623cc413032fdf..05f118f34f4df9 100644 --- a/playground/optimize-deps/vite.config.js +++ b/playground/optimize-deps/vite.config.js @@ -1,6 +1,8 @@ const fs = require('fs') const vue = require('@vitejs/plugin-vue') +process.env.NODE_ENV = undefined + /** * @type {import('vite').UserConfig} */