From 49cf2e8bed6aba4d1f77334d8698a0b0ef3078a2 Mon Sep 17 00:00:00 2001 From: ZeroLing Date: Wed, 15 Jun 2022 18:04:43 +0800 Subject: [PATCH] Update webpack.build.ts Add test for terser plugin. --- packages/rax-webpack-config/src/webpack.build.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/rax-webpack-config/src/webpack.build.ts b/packages/rax-webpack-config/src/webpack.build.ts index c1cf47453..9bf0878bc 100644 --- a/packages/rax-webpack-config/src/webpack.build.ts +++ b/packages/rax-webpack-config/src/webpack.build.ts @@ -6,6 +6,7 @@ export default (config) => { config.devtool(false); let terserPluginOptions = { + test: /\\.m?[t|j]sx?(\\?.*)?$/i, parallel: true, extractComments: false, terserOptions: {