From ff641a4e05a46aab87eb2fec5d2b3b17c0c32c3e Mon Sep 17 00:00:00 2001 From: ChenX Date: Mon, 3 Feb 2020 14:28:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91:=E4=BF=AE=E6=94=B9=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=8F=98=E9=87=8F=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/webpack.common.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/webpack.common.ts b/config/webpack.common.ts index 3d4cb900f..c4991bd5c 100644 --- a/config/webpack.common.ts +++ b/config/webpack.common.ts @@ -136,8 +136,7 @@ const config: webpack.Configuration = { React: 'react', THREE: "three" }), - //@ts-ignore - new webpack.DefinePlugin({ 'process.env': {} }), + new webpack.DefinePlugin({ 'process': "globalThis" }), new CleanTerminalPlugin(), // new HardSourceWebpackPlugin(), // new ForkTsCheckerWebpackPlugin({ checkSyntacticErrors: true }),