cmpt-huitu-cli 1.0.20 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -155,7 +155,17 @@ export default defineConfig(({ mode, command }) => {
|
|
|
155
155
|
chunkFileNames: 'assets/js/[name]-[hash].js',
|
|
156
156
|
assetFileNames: 'assets/[ext]/[name]-[hash].[ext]',
|
|
157
157
|
manualChunks(id) {
|
|
158
|
-
//
|
|
158
|
+
// 1. 单独拆分 Huitu Chart
|
|
159
|
+
if (id.includes('@huitu-dev/chart-plus-dev')) {
|
|
160
|
+
return 'huitu-charts'
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// 2. 单独拆分 Huitu Map (地图通常很大)
|
|
164
|
+
if (id.includes('@huitu-dev/map-plus-dev')) {
|
|
165
|
+
return 'huitu-maps'
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// 3. ECharts 核心库 (只包含 echarts 和 zrender)
|
|
159
169
|
if (id.includes('node_modules/echarts') || id.includes('node_modules/zrender')) {
|
|
160
170
|
return 'echarts'
|
|
161
171
|
}
|