@seayoo-web/scripts 2.0.6 → 2.0.7

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -150,12 +150,16 @@ function definePageBuildConfig(option) {
150
150
  const gitInfo = onlyBuild ? null : await getCommitInfo(command, mode, envs.page, envs.deployTo || "");
151
151
  const isProductMode = mode === "production" || mode === "prod";
152
152
  const trunkMap = {
153
+ ...manualChunks,
153
154
  "naive-ui": "naive-ui",
154
155
  html2canvas: "html2canvas",
155
156
  thinkingdata: "thinkingdata",
156
- vue: "vue",
157
- node_modules: "vendor",
158
- ...manualChunks
157
+ pinia: "vue",
158
+ "vue-router": "vue",
159
+ "plugin-vue:": "vue",
160
+ "/vue/": "vue",
161
+ "/@vue": "vue",
162
+ node_modules: "vendor"
159
163
  };
160
164
  const trunkKeys = Object.keys(trunkMap).sort((a, b) => a === "node_modules" ? 1 : b === "node_modules" ? -1 : 0);
161
165
  const trunkFn = function(id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seayoo-web/scripts",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "scripts for seayoo web repos",
5
5
  "type": "module",
6
6
  "source": "index.ts",