@seayoo-web/scripts 2.0.11 → 2.0.12
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/dist/index.js +2 -3
- package/package.json +1 -1
- package/types/src/vite.page.d.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -151,13 +151,12 @@ function definePageBuildConfig(option) {
|
|
|
151
151
|
const gitInfo = justBuild ? null : await getCommitInfo(command, mode, envs.page, envs.deployTo || "");
|
|
152
152
|
const isProductMode = mode === "production" || mode === "prod";
|
|
153
153
|
const trunkMap = {
|
|
154
|
-
...manualChunks,
|
|
155
154
|
"naive-ui": "naive-ui",
|
|
156
155
|
html2canvas: "html2canvas",
|
|
157
156
|
thinkingdata: "thinkingdata",
|
|
158
|
-
|
|
157
|
+
...manualChunks
|
|
159
158
|
};
|
|
160
|
-
const trunkKeys = Object.keys(trunkMap)
|
|
159
|
+
const trunkKeys = Object.keys(trunkMap);
|
|
161
160
|
const trunkFn = function(id) {
|
|
162
161
|
const k = trunkKeys.find((k2) => id.includes(k2));
|
|
163
162
|
if (k) return trunkMap[k];
|
package/package.json
CHANGED
package/types/src/vite.page.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ interface ExternalConfig {
|
|
|
10
10
|
/**
|
|
11
11
|
* 手工指定 trunk 合并策略,Record<key, chunk>,即 id.include(key) 则打到 trunk 中
|
|
12
12
|
*
|
|
13
|
-
* 默认 {`naive-ui`, `html2canvas`, `thinkingdata
|
|
13
|
+
* 默认 {`naive-ui`, `html2canvas`, `thinkingdata`}
|
|
14
14
|
*
|
|
15
15
|
* 设置的值会跟默认值进行合并。
|
|
16
16
|
*
|