@gct-paas/build 0.1.9 → 0.1.10

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/CHANGELOG.md CHANGED
@@ -7,6 +7,16 @@
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.10] - 2026-04-25
11
+
12
+ ### Added
13
+
14
+ - 新增 @wangeditor/editor 外部依赖
15
+
16
+ ### Changed
17
+
18
+ - vite 编译配置新增 ```optimizeDeps: { include: DEFAULT_EXTERNAL }``` 优化开发编译
19
+
10
20
  ## [0.1.9] - 2026-04-22
11
21
 
12
22
  ### Added
@@ -12,7 +12,7 @@ const DEFAULT_EXTERNAL = exports.DEFAULT_EXTERNAL = ["@babel/standalone", "espri
12
12
  // 第三方依赖
13
13
  "axios", "dayjs", "lodash-es", "qs", "bignumber.js", "wujie", "@module-federation/runtime", "sql-formatter", "mqtt", "@fingerprintjs/fingerprintjs", "overlayscrollbars", "@jsplumb/browser-ui", "sortablejs", "interactjs", "bwip-js",
14
14
  // 组件库相关依赖
15
- "vuedraggable", "vue-grid-layout", "vant", "ant-design-vue", "vxe-table", "pinyin-pro",
15
+ "vuedraggable", "vue-grid-layout", "vant", "ant-design-vue", "vxe-table", "@wangeditor/editor", "pinyin-pro",
16
16
  // 图标库相关依赖
17
17
  "@ant-design/icons-vue", "@icon-park/vue-next/es/all", "@icon-park/vue-next/icons.json",
18
18
  // @gct-paas 底包相关依赖
@@ -27,6 +27,9 @@ function defineViteBaseConfig(opts = {}) {
27
27
  }
28
28
  }
29
29
  },
30
+ optimizeDeps: {
31
+ include: _constants.DEFAULT_EXTERNAL
32
+ },
30
33
  build: {
31
34
  outDir,
32
35
  target: "chrome89",
@@ -39,6 +39,9 @@ function definePkgDevViteConfig(opts = {}) {
39
39
  }
40
40
  }
41
41
  },
42
+ optimizeDeps: {
43
+ include: _constants.DEFAULT_EXTERNAL
44
+ },
42
45
  build: {
43
46
  outDir,
44
47
  target: "esnext",
@@ -25,6 +25,9 @@ function defineProjectViteConfig(opts = {}) {
25
25
  }
26
26
  },
27
27
  base: "./",
28
+ optimizeDeps: {
29
+ include: _constants.DEFAULT_EXTERNAL
30
+ },
28
31
  build: {
29
32
  rolldownOptions: {
30
33
  external: _constants.DEFAULT_EXTERNAL
@@ -32,6 +32,7 @@ export const DEFAULT_EXTERNAL = [
32
32
  "vant",
33
33
  "ant-design-vue",
34
34
  "vxe-table",
35
+ "@wangeditor/editor",
35
36
  "pinyin-pro",
36
37
  // 图标库相关依赖
37
38
  "@ant-design/icons-vue",
@@ -21,6 +21,9 @@ export function defineViteBaseConfig(opts = {}) {
21
21
  }
22
22
  }
23
23
  },
24
+ optimizeDeps: {
25
+ include: DEFAULT_EXTERNAL
26
+ },
24
27
  build: {
25
28
  outDir,
26
29
  target: "chrome89",
@@ -31,6 +31,9 @@ export function definePkgDevViteConfig(opts = {}) {
31
31
  }
32
32
  }
33
33
  },
34
+ optimizeDeps: {
35
+ include: DEFAULT_EXTERNAL
36
+ },
34
37
  build: {
35
38
  outDir,
36
39
  target: "esnext",
@@ -21,6 +21,9 @@ export function defineProjectViteConfig(opts = {}) {
21
21
  }
22
22
  },
23
23
  base: "./",
24
+ optimizeDeps: {
25
+ include: DEFAULT_EXTERNAL
26
+ },
24
27
  build: {
25
28
  rolldownOptions: {
26
29
  external: DEFAULT_EXTERNAL
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/build",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "type": "module",
5
5
  "description": "paas 平台核心包",
6
6
  "main": "dist/index.cjs",
@@ -91,7 +91,7 @@
91
91
  "@types/fs-extra": "^11.0.4",
92
92
  "@types/lodash-es": "^4.17.12",
93
93
  "@types/node": "^25.5.0",
94
- "postcss": "^8.5.8",
94
+ "postcss": "^8.5.10",
95
95
  "tsx": "^4.21.0",
96
96
  "typescript": "^6.0.2",
97
97
  "unbuild": "^3.6.1"