From 6529d9048f29bc1246606c60f921ad9849b5fc3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Tue, 2 Jun 2020 14:57:29 +0800 Subject: [PATCH] :package: use ESBUILD in codesandbox ci (#24685) --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 928af9d52a..eae836782d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -110,7 +110,7 @@ if (process.env.RUN_ENV === 'PRODUCTION') { // Reduce non-minified dist files size config.optimization.usedExports = true; // use esbuild - if (process.env.ESBUILD) { + if (process.env.ESBUILD || process.env.CSB_REPO) { config.optimization.minimizer[0] = new EsbuildPlugin(); }