From 45e756c558ae21c447eff2df746481fb0e244bf0 Mon Sep 17 00:00:00 2001 From: chenos Date: Tue, 24 May 2022 22:57:32 +0800 Subject: [PATCH] fix(devtools): unexpected token '.' --- packages/core/devtools/umiConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/devtools/umiConfig.js b/packages/core/devtools/umiConfig.js index e99f78ad1..0ee0f77e5 100644 --- a/packages/core/devtools/umiConfig.js +++ b/packages/core/devtools/umiConfig.js @@ -27,7 +27,7 @@ function getUmiConfig() { define: { 'process.env.API_BASE_URL': API_BASE_URL || API_BASE_PATH, 'process.env.APP_ENV': process.env.APP_ENV, - 'process.env.VERSION': packageJson?.version, + 'process.env.VERSION': packageJson.version, }, // only proxy when using `umi dev` // if the assets are built, will not proxy