@cloudbase/lowcode-builder 1.10.24 → 1.10.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/lowcode-builder",
3
- "version": "1.10.24",
3
+ "version": "1.10.27",
4
4
  "description": "云开发 Tencent CloudBase Framework Low Code Plugin,将低码配置生成完整项目并一键部署云开发资源。",
5
5
  "author": "yhsunshining@gmail.com",
6
6
  "homepage": "https://github.com/TencentCloudBase/cloudbase-framework#readme",
@@ -49,7 +49,7 @@
49
49
  "dependencies": {
50
50
  "@babel/core": "7.21.4",
51
51
  "@babel/preset-env": "7.21.4",
52
- "@cloudbase/cals": "^1.2.15",
52
+ "@cloudbase/cals": "^1.2.17",
53
53
  "@cloudbase/lowcode-generator": "^1.8.42",
54
54
  "axios": "^0.21.0",
55
55
  "chalk": "^2.4.2",
@@ -464,7 +464,7 @@
464
464
  <script type="module" src="/src/index.jsx"></script>
465
465
  <% } %> <% if(!isAdminPortal){ %>
466
466
  <script src="<%= wedaPrivateConfigEndpoint ? wedaPrivateConfigEndpoint : '' %>/weda-config/weda-private.js"></script>
467
- <script src="<%= cdnEndpoints.cloudbase %>/cloudbase-js-sdk/2.18.0/cloudbase.full.js?v=1"></script>
467
+ <script src="<%= cdnEndpoints.cloudbase %>/cloudbase-js-sdk/2.19.2/cloudbase.full.js?v=1"></script>
468
468
  <script
469
469
  crossorigin
470
470
  src="<%= cdnEndpoints.cdngo %>/lcap/lcap-resource-cdngo/-/release/_npm/cloudbase-adapter-privatelink@0.0.2/dist/index.js"
@@ -557,7 +557,7 @@
557
557
  crossorigin
558
558
  src="<%=
559
559
  cdnEndpoints.cdngo
560
- %>/lcap/lcap-resource-cdngo/-/0.1.4/_files/static/weda-render/main.6ab1c2f2d432e4285fbf.bundle.js"
560
+ %>/lcap/lcap-resource-cdngo/-/0.1.4/_files/static/weda-render/main.5a9c255f690a71ec67c4.bundle.js"
561
561
  ></script>
562
562
  </body>
563
563
  </html>
@@ -40,7 +40,6 @@
40
40
  "vue-template-compiler": "2.6.14",
41
41
  "webpack": "^4.47.0",
42
42
  "webpack-bundle-analyzer": "^4.10.2",
43
- "webpack-dev-server": "^3.11.3",
44
43
  "webpack-cli": "^3.3.12"
45
44
  }
46
- }
45
+ }
@@ -10,12 +10,12 @@ prodConfig.plugins.forEach((plugin) => {
10
10
  const config = Object.assign({}, prodConfig, {
11
11
  mode: 'development',
12
12
  watch: true,
13
- devServer: {
14
- compress: true,
15
- hot: true,
16
- liveReload: true,
17
- port: 9001,
18
- },
13
+ // devServer: {
14
+ // compress: true,
15
+ // hot: true,
16
+ // liveReload: true,
17
+ // port: 9001,
18
+ // },
19
19
  });
20
20
 
21
21
  module.exports = config;
@@ -100,10 +100,14 @@ module.exports = function (options) {
100
100
  }),
101
101
  new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
102
102
  new webpack.NormalModuleReplacementPlugin(
103
- /@\/components\/(?!ui)(.*)|^@\/components$/, // 使用否定前瞻匹配除ui外的所有路径
103
+ /@\/components\/(?!ui)(.*)|^@\/lib|^@\/configs|^@\/components$/, // 使用否定前瞻匹配除ui外的所有路径
104
104
  function (resource) {
105
- if (/lowcode\/(pages|components)/.test(resource.context)) {
106
- if (/\@\/components\/(.*)/.test(resource.request)) {
105
+ if (/lowcode\/(pages|components|lib|configs)/.test(resource.context)) {
106
+ if (/\@\/lib\/(.*)/.test(resource.request)) {
107
+ resource.request = resource.request.replace(/\@\/lib\/(.*)/, '@/lowcode/lib/$1');
108
+ } else if (/\@\/configs\/(.*)/.test(resource.request)) {
109
+ resource.request = resource.request.replace(/\@\/configs\/(.*)/, '@/lowcode/configs/$1');
110
+ } else if (/\@\/components\/(.*)/.test(resource.request)) {
107
111
  resource.request = resource.request.replace(/\@\/components\/(.*)/, '@/lowcode/components/$1');
108
112
  } else if (resource.request === '@/components') {
109
113
  resource.request = '@/lowcode/components/index';
@@ -236,6 +240,9 @@ module.exports = function (options) {
236
240
  recharts: 'window.SHADN.RECHARTS',
237
241
  'react-hook-form': 'window.SHADN.ReactHookForm',
238
242
  'lucide-react': 'window.SHADN.LUCIDE',
243
+ 'date-fns': 'window.SHADN.DateFns',
244
+ clsx: 'window.SHADN.CLSX',
245
+ 'tailwind-merge': 'window.SHADN.TailwindMerge',
239
246
  };
240
247
 
241
248
  if (/lowcode\//.test(context)) {