diff --git a/config/plugin.config.ts b/config/plugin.config.ts index 4ba5a55e9b3b6fc9237ba371ca864ee35bf5373d..c00bfab5e8e0fc0b0a17ab3a9525df0d5e298ae1 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; },