cmpt-huitu-cli 1.0.21 → 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,13 +155,18 @@ 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
|
-
//
|
|
159
|
-
if (
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
) {
|
|
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)
|
|
169
|
+
if (id.includes('node_modules/echarts') || id.includes('node_modules/zrender')) {
|
|
165
170
|
return 'echarts'
|
|
166
171
|
}
|
|
167
172
|
// Vue 全家桶
|