@cloudbase/lowcode-builder 1.10.9 → 1.10.11
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.generateSystemPackageDependencies = exports.generateLibDependencies = exports.generatePackageDependencies = void 0;
|
|
4
4
|
const cals_1 = require("@cloudbase/cals");
|
|
5
|
-
const CLOUDBASE_VERSION = '2.
|
|
5
|
+
const CLOUDBASE_VERSION = '2.10.0';
|
|
6
6
|
const BASE_DEPS = {
|
|
7
7
|
'miniprogram-gesture': '^1.0.6',
|
|
8
8
|
mobx: '^5',
|
|
@@ -13,7 +13,7 @@ const BASE_DEPS = {
|
|
|
13
13
|
* 注意锁版本
|
|
14
14
|
*/
|
|
15
15
|
const CLOUDBASE_DEPS = {
|
|
16
|
-
'@cloudbase/weda-client': '1.1.
|
|
16
|
+
'@cloudbase/weda-client': '1.1.27',
|
|
17
17
|
'@cloudbase/weda-cloud-sdk': '1.0.96',
|
|
18
18
|
};
|
|
19
19
|
const COMPONENT_DEPS = {
|
package/lib/builder/h5/index.js
CHANGED
|
@@ -55,7 +55,7 @@ if (!process.env.IS_WEB_WORKER) {
|
|
|
55
55
|
}
|
|
56
56
|
async function buildH5App({ buildContext, i18nConfig, extraData, cals: _cals, buildTypeList = [common_1.BuildType.WEB], subAppCalsList, mode, devTool, runtime = types_1.RUNTIME.NONE, deployOptions = { mode: types_1.DEPLOY_MODE.PREVIEW }, ignoreInstall = false, runtimeOptions = {}, cdnEndpoints, }) {
|
|
57
57
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
58
|
-
const { projDir: buildDir, domain, materialLibs: dependencies, appId: appKey, isPrivateMode, enableExpiredTag, privatelinkConfig, enableOfficialLibNPM, } = buildContext;
|
|
58
|
+
const { projDir: buildDir, domain, materialLibs: dependencies, appId: appKey, isPrivateMode, enableExpiredTag, enableAd, privatelinkConfig, enableOfficialLibNPM, } = buildContext;
|
|
59
59
|
if (!deployOptions.mode || deployOptions.mode === types_1.DEPLOY_MODE.DYNAMIC) {
|
|
60
60
|
deployOptions.mode = types_1.DEPLOY_MODE.PREVIEW;
|
|
61
61
|
}
|
|
@@ -183,6 +183,7 @@ async function buildH5App({ buildContext, i18nConfig, extraData, cals: _cals, bu
|
|
|
183
183
|
_indexPage,
|
|
184
184
|
isPrivateMode,
|
|
185
185
|
expirationStartTimesnap: enableExpiredTag ? Date.now() : undefined,
|
|
186
|
+
enableAd,
|
|
186
187
|
usedComps: used,
|
|
187
188
|
privatelinkConfig,
|
|
188
189
|
});
|
package/lib/builder/mp/wxml.js
CHANGED
|
@@ -134,6 +134,16 @@ function generateWxml(ctx, widgets, docTag, wxmlDataPrefix, usingComponents, com
|
|
|
134
134
|
type: 'text',
|
|
135
135
|
text: '基于腾讯云开发搭建与部署,升级套餐可移除此说明',
|
|
136
136
|
};
|
|
137
|
+
pageMeta.elements.unshift({
|
|
138
|
+
type: 'element',
|
|
139
|
+
name: 'view',
|
|
140
|
+
attributes: {
|
|
141
|
+
style: 'font-size: 12px; padding-top: 2.5em;',
|
|
142
|
+
},
|
|
143
|
+
elements: [],
|
|
144
|
+
_order: -Infinity,
|
|
145
|
+
_parent: pageMeta,
|
|
146
|
+
});
|
|
137
147
|
pageMeta.elements.unshift({
|
|
138
148
|
type: 'element',
|
|
139
149
|
name: 'view',
|