@gct-paas/build 0.1.17 → 0.1.19

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.19] - 2026-06-18
11
+
12
+ ### Added
13
+
14
+ - 新增 google-libphonenumber、jspdf、html2canvas、exceljs 外部依赖
15
+
16
+ ## [0.1.18] - 2026-06-17
17
+
18
+ ### Changed
19
+
20
+ - 编译主项目时,在 BUILD_PLUGIN_ENV 模式时,使用开发态 vue 包,避免 hmr 失效
21
+
10
22
  ## [0.1.17] - 2026-06-02
11
23
 
12
24
  ### Changed
@@ -12,10 +12,10 @@ 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 底包相关依赖
19
19
  "@gct-paas/api", "@gct-paas/core", "@gct-paas/core-components", "@gct-paas/core-mobile", "@gct-paas/core-web", "@gct-paas/core-pad", "@gct-paas/design", "@gct-paas/design-mobile", "@gct-paas/design-web", "@gct-paas/design-pad", "@gct-paas/native", "@gct-paas/render", "@gct-paas/render-mobile", "@gct-paas/render-pad", "@gct-paas/render-web", "@gct-paas/schema", "@gct-paas/scss",
20
20
  // @gct-paas 独立组件库
21
- "@gct-paas/platform-icons", "@gct-paas/vue-pdf", "@gct-paas/vue-video-player", "@gct-paas/flow", "@gct-paas/monaco-vue-editor"];
21
+ "@gct-paas/flow", "@gct-paas/monaco-vue-editor", "@gct-paas/platform-icons", "@gct-paas/vue-pdf", "@gct-paas/vue-video-player", "@gct-paas/vxe-table"];
@@ -10,6 +10,9 @@ var _simpleGit = require("simple-git");
10
10
  var _util = require("../../util/index.cjs");
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
12
  const DEV_IMPORT_MAP_PREFIX = ["/plugin-design/@id/", "/plugin-render-mobile/@id/", "/plugin-render-pad/@id/", "/plugin-render-web/@id/"];
13
+ const DEV_IMPORT_MAP_REPLACE = {
14
+ "vue.esm-browser.prod.js": "vue.esm-browser.js"
15
+ };
13
16
  function injectImportMapPlugin(options = {}) {
14
17
  if (options.disabled === true) {
15
18
  return void 0;
@@ -90,6 +93,15 @@ function injectImportMapPlugin(options = {}) {
90
93
  parsed.imports[prefix + key] = val;
91
94
  });
92
95
  });
96
+ Object.keys(parsed.imports).forEach(key => {
97
+ let val = parsed.imports[key];
98
+ if (typeof val === "string") {
99
+ Object.entries(DEV_IMPORT_MAP_REPLACE).forEach(([from, to]) => {
100
+ val = val.replace(from, to);
101
+ });
102
+ parsed.imports[key] = val;
103
+ }
104
+ });
93
105
  }
94
106
  importMapContent = JSON.stringify(parsed);
95
107
  } catch (parseError) {
@@ -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",
@@ -57,9 +61,10 @@ export const DEFAULT_EXTERNAL = [
57
61
  "@gct-paas/schema",
58
62
  "@gct-paas/scss",
59
63
  // @gct-paas 独立组件库
64
+ "@gct-paas/flow",
65
+ "@gct-paas/monaco-vue-editor",
60
66
  "@gct-paas/platform-icons",
61
67
  "@gct-paas/vue-pdf",
62
68
  "@gct-paas/vue-video-player",
63
- "@gct-paas/flow",
64
- "@gct-paas/monaco-vue-editor"
69
+ "@gct-paas/vxe-table"
65
70
  ];
@@ -3,6 +3,9 @@ import path from "node:path";
3
3
  import { simpleGit } from "simple-git";
4
4
  import { isBuildPluginEnv } from "../../util/index.mjs";
5
5
  const DEV_IMPORT_MAP_PREFIX = ["/plugin-design/@id/", "/plugin-render-mobile/@id/", "/plugin-render-pad/@id/", "/plugin-render-web/@id/"];
6
+ const DEV_IMPORT_MAP_REPLACE = {
7
+ "vue.esm-browser.prod.js": "vue.esm-browser.js"
8
+ };
6
9
  export function injectImportMapPlugin(options = {}) {
7
10
  if (options.disabled === true) {
8
11
  return void 0;
@@ -82,6 +85,15 @@ export function injectImportMapPlugin(options = {}) {
82
85
  parsed.imports[prefix + key] = val;
83
86
  });
84
87
  });
88
+ Object.keys(parsed.imports).forEach((key) => {
89
+ let val = parsed.imports[key];
90
+ if (typeof val === "string") {
91
+ Object.entries(DEV_IMPORT_MAP_REPLACE).forEach(([from, to]) => {
92
+ val = val.replace(from, to);
93
+ });
94
+ parsed.imports[key] = val;
95
+ }
96
+ });
85
97
  }
86
98
  importMapContent = JSON.stringify(parsed);
87
99
  } catch (parseError) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/build",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "type": "module",
5
5
  "description": "paas 平台核心包",
6
6
  "main": "dist/index.cjs",