@gct-paas/build 0.1.18 → 0.1.20

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,18 @@
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.20] - 2026-06-23
11
+
12
+ ### Changed
13
+
14
+ - unocss 配置调整 处理@gct-paas包中unocss 生产环境不生效问题
15
+
16
+ ## [0.1.19] - 2026-06-18
17
+
18
+ ### Added
19
+
20
+ - 新增 google-libphonenumber、jspdf、html2canvas、exceljs 外部依赖
21
+
10
22
  ## [0.1.18] - 2026-06-17
11
23
 
12
24
  ### Changed
@@ -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", "@wangeditor/editor", "pinyin-pro",
15
+ "vuedraggable", "vue-grid-layout", "vant", "ant-design-vue", "vxe-table", "@wangeditor/editor", "pinyin-pro", "google-libphonenumber", "html2canvas", "jspdf", "exceljs",
16
16
  // 图标库相关依赖
17
17
  "@ant-design/icons-vue", "@icon-park/vue-next/es/all", "@icon-park/vue-next/icons.json",
18
18
  // @gct-paas 底包相关依赖
@@ -29,8 +29,11 @@ function defineUnoConfig(config) {
29
29
  },
30
30
  presets: [(0, _unocss.presetWind3)(), (0, _unocss.presetTypography)(), (0, _unocss.presetWebFonts)({})],
31
31
  content: {
32
+ // 生产构建时 @gct-paas/* 为 external,不会进入 Vite pipeline,
33
+ // 需通过 filesystem 从 es 产物中提取 UnoCSS 工具类
34
+ filesystem: ["node_modules/@gct-paas/**/es/**/*.mjs"],
32
35
  pipeline: {
33
- include: [/\.(vue|[jt]sx?|mjs)($|\?)/, "node_modules/@gct-paas/**/es/**/*.{mjs,js,ts,tsx,vue}"]
36
+ include: [/\.(vue|[jt]sx?|mjs)($|\?)/]
34
37
  }
35
38
  }
36
39
  }, config));
@@ -34,6 +34,10 @@ export const DEFAULT_EXTERNAL = [
34
34
  "vxe-table",
35
35
  "@wangeditor/editor",
36
36
  "pinyin-pro",
37
+ "google-libphonenumber",
38
+ "html2canvas",
39
+ "jspdf",
40
+ "exceljs",
37
41
  // 图标库相关依赖
38
42
  "@ant-design/icons-vue",
39
43
  "@icon-park/vue-next/es/all",
@@ -30,11 +30,11 @@ export function defineUnoConfig(config) {
30
30
  },
31
31
  presets: [presetWind3(), presetTypography(), presetWebFonts({})],
32
32
  content: {
33
+ // 生产构建时 @gct-paas/* 为 external,不会进入 Vite pipeline,
34
+ // 需通过 filesystem 从 es 产物中提取 UnoCSS 工具类
35
+ filesystem: ["node_modules/@gct-paas/**/es/**/*.mjs"],
33
36
  pipeline: {
34
- include: [
35
- /\.(vue|[jt]sx?|mjs)($|\?)/,
36
- "node_modules/@gct-paas/**/es/**/*.{mjs,js,ts,tsx,vue}"
37
- ]
37
+ include: [/\.(vue|[jt]sx?|mjs)($|\?)/]
38
38
  }
39
39
  }
40
40
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/build",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "type": "module",
5
5
  "description": "paas 平台核心包",
6
6
  "main": "dist/index.cjs",