From 8459d37f2e86154d24d359e98f205ac83640d902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Fri, 16 Aug 2019 15:28:50 +0800 Subject: [PATCH] remove gg-editor in layout chunks --- config/plugin.config.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/config/plugin.config.ts b/config/plugin.config.ts index 4ba5a55e..c00bfab5 100644 --- a/config/plugin.config.ts +++ b/config/plugin.config.ts @@ -64,9 +64,16 @@ export default (config: any) => { cacheGroups: { vendors: { test: (module: { context: string }) => { - const packageName = getModulePackageName(module); + const packageName = getModulePackageName(module) || ''; if (packageName) { - return ['bizcharts', '@antv_data-set'].indexOf(packageName) >= 0; + return [ + 'bizcharts', + 'gg-editor', + 'g6', + '@antv', + 'gg-editor-core', + 'bizcharts-plugin-slider', + ].includes(packageName); } return false; },