ebuilds-shared 0.2.2 → 0.2.3
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.
|
@@ -2858,20 +2858,28 @@ var config = (isProduction) => {
|
|
|
2858
2858
|
* 3. UI 库通常较大,建议单独拆分。
|
|
2859
2859
|
*/
|
|
2860
2860
|
manualChunks(id) {
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
const
|
|
2864
|
-
const
|
|
2865
|
-
if (
|
|
2866
|
-
|
|
2861
|
+
if (id.includes("node_modules")) {
|
|
2862
|
+
const normalizedId = id.replace(/\\/g, "/");
|
|
2863
|
+
const segments = normalizedId.split("/");
|
|
2864
|
+
const nmIndex = segments.lastIndexOf("node_modules");
|
|
2865
|
+
if (nmIndex > -1) {
|
|
2866
|
+
let packageName = segments[nmIndex + 1];
|
|
2867
|
+
if (packageName.startsWith("@")) {
|
|
2868
|
+
if (segments[nmIndex + 2]) {
|
|
2869
|
+
packageName += `/${segments[nmIndex + 2]}`;
|
|
2870
|
+
}
|
|
2871
|
+
}
|
|
2872
|
+
if (["vue", "react", "react-dom", "pinia", "vuex", "react-router-dom", "vue-router"].includes(packageName)) {
|
|
2873
|
+
return "framework";
|
|
2874
|
+
}
|
|
2875
|
+
if (["element-plus", "ant-design-vue", "arco-design", "antd", "@arco-design/web-vue"].includes(packageName)) {
|
|
2876
|
+
return "ui-lib";
|
|
2877
|
+
}
|
|
2878
|
+
if (["lodash-es", "lodash", "echarts", "moment", "axios", "three"].includes(packageName)) {
|
|
2879
|
+
return `lib-${packageName}`;
|
|
2880
|
+
}
|
|
2881
|
+
return "vendor";
|
|
2867
2882
|
}
|
|
2868
|
-
if (["element-plus", "ant-design-vue", "arco-design", "antd", "@arco-design/web-vue"].includes(packageName)) {
|
|
2869
|
-
return "ui-lib";
|
|
2870
|
-
}
|
|
2871
|
-
if (["lodash-es", "lodash", "echarts", "moment", "axios", "three"].includes(packageName)) {
|
|
2872
|
-
return `lib-${packageName}`;
|
|
2873
|
-
}
|
|
2874
|
-
return "vendor";
|
|
2875
2883
|
}
|
|
2876
2884
|
if (id.includes("src/views/")) {
|
|
2877
2885
|
const parts = id.split("src/views/");
|
|
@@ -2858,20 +2858,28 @@ var config = (isProduction) => {
|
|
|
2858
2858
|
* 3. UI 库通常较大,建议单独拆分。
|
|
2859
2859
|
*/
|
|
2860
2860
|
manualChunks(id) {
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
const
|
|
2864
|
-
const
|
|
2865
|
-
if (
|
|
2866
|
-
|
|
2861
|
+
if (id.includes("node_modules")) {
|
|
2862
|
+
const normalizedId = id.replace(/\\/g, "/");
|
|
2863
|
+
const segments = normalizedId.split("/");
|
|
2864
|
+
const nmIndex = segments.lastIndexOf("node_modules");
|
|
2865
|
+
if (nmIndex > -1) {
|
|
2866
|
+
let packageName = segments[nmIndex + 1];
|
|
2867
|
+
if (packageName.startsWith("@")) {
|
|
2868
|
+
if (segments[nmIndex + 2]) {
|
|
2869
|
+
packageName += `/${segments[nmIndex + 2]}`;
|
|
2870
|
+
}
|
|
2871
|
+
}
|
|
2872
|
+
if (["vue", "react", "react-dom", "pinia", "vuex", "react-router-dom", "vue-router"].includes(packageName)) {
|
|
2873
|
+
return "framework";
|
|
2874
|
+
}
|
|
2875
|
+
if (["element-plus", "ant-design-vue", "arco-design", "antd", "@arco-design/web-vue"].includes(packageName)) {
|
|
2876
|
+
return "ui-lib";
|
|
2877
|
+
}
|
|
2878
|
+
if (["lodash-es", "lodash", "echarts", "moment", "axios", "three"].includes(packageName)) {
|
|
2879
|
+
return `lib-${packageName}`;
|
|
2880
|
+
}
|
|
2881
|
+
return "vendor";
|
|
2867
2882
|
}
|
|
2868
|
-
if (["element-plus", "ant-design-vue", "arco-design", "antd", "@arco-design/web-vue"].includes(packageName)) {
|
|
2869
|
-
return "ui-lib";
|
|
2870
|
-
}
|
|
2871
|
-
if (["lodash-es", "lodash", "echarts", "moment", "axios", "three"].includes(packageName)) {
|
|
2872
|
-
return `lib-${packageName}`;
|
|
2873
|
-
}
|
|
2874
|
-
return "vendor";
|
|
2875
2883
|
}
|
|
2876
2884
|
if (id.includes("src/views/")) {
|
|
2877
2885
|
const parts = id.split("src/views/");
|
package/dist/index.js
CHANGED
|
@@ -32,7 +32,7 @@ var _chunk3YUIFF3Jjs = require('./chunk-3YUIFF3J.js');
|
|
|
32
32
|
var _chunkWGOU4SV3js = require('./chunk-WGOU4SV3.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkDXEPT6A7js = require('./chunk-DXEPT6A7.js');
|
|
36
36
|
require('./chunk-QGM4M3NI.js');
|
|
37
37
|
|
|
38
38
|
|
|
@@ -64,4 +64,4 @@ require('./chunk-QGM4M3NI.js');
|
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
exports.clamp = _chunkWGOU4SV3js.clamp; exports.createBaseViteConfig =
|
|
67
|
+
exports.clamp = _chunkWGOU4SV3js.clamp; exports.createBaseViteConfig = _chunkDXEPT6A7js.createBaseViteConfig; exports.createFunctionalComponent = _chunkWGOU4SV3js.createFunctionalComponent; exports.createUnoConfig = _chunk3YUIFF3Jjs.createUnoConfig; exports.duplicateRemovalCompleteSort = _chunkWGOU4SV3js.duplicateRemovalCompleteSort; exports.encryptPwd = _chunkWGOU4SV3js.encryptPwd; exports.filterMenu = _chunkWGOU4SV3js.filterMenu; exports.formatNumber = _chunkWGOU4SV3js.formatNumber; exports.getDecimalPart = _chunkWGOU4SV3js.getDecimalPart; exports.getIntegerPart = _chunkWGOU4SV3js.getIntegerPart; exports.isInteger = _chunkWGOU4SV3js.isInteger; exports.isNumber = _chunkWGOU4SV3js.isNumber; exports.jsonp = _chunkWGOU4SV3js.jsonp; exports.listSort = _chunkWGOU4SV3js.listSort; exports.numberToChinese = _chunkWGOU4SV3js.numberToChinese; exports.padZero = _chunkWGOU4SV3js.padZero; exports.parseFormattedNumber = _chunkWGOU4SV3js.parseFormattedNumber; exports.prototypeInterceptor = _chunkWGOU4SV3js.prototypeInterceptor; exports.request = _chunkWGOU4SV3js.request; exports.roundOrTruncate = _chunkWGOU4SV3js.roundOrTruncate; exports.setupPermission = _chunkWGOU4SV3js.setupPermission; exports.store = _chunkWGOU4SV3js.store; exports.timeFix = _chunkWGOU4SV3js.timeFix; exports.updateDocumentTitle = _chunkWGOU4SV3js.updateDocumentTitle; exports.useCommonStore = _chunkWGOU4SV3js.useCommonStore; exports.useDbStore = _chunkWGOU4SV3js.useDbStore; exports.useLoginHook = _chunkWGOU4SV3js.useLoginHook; exports.useMenuStore = _chunkWGOU4SV3js.useMenuStore; exports.welcome = _chunkWGOU4SV3js.welcome;
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkDXEPT6A7js = require('../chunk-DXEPT6A7.js');
|
|
4
4
|
require('../chunk-QGM4M3NI.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.createBaseViteConfig =
|
|
7
|
+
exports.createBaseViteConfig = _chunkDXEPT6A7js.createBaseViteConfig;
|