@cloudbase/lowcode-builder 1.8.80 → 1.8.81
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.
|
@@ -60,7 +60,7 @@ export declare function buildWedaConfig({ output, domain, isPrivateMode, endpoin
|
|
|
60
60
|
endpointType?: IBuildWedaApp['endpointType'];
|
|
61
61
|
buildTypeList?: IBuildWedaApp['buildTypeList'];
|
|
62
62
|
}): Promise<void>;
|
|
63
|
-
export declare function buildWedaApp({ cals, subAppCalsList, dependencies, appKey, runtime, ignoreInstall, buildTypeList, mode, devTool, deployOptions, generateMpType, plugins, extraData, resourceAppId, domain, output, isBrowserMpBuilder, cdnEndpoints, isPrivateMode, endpointType, enableExpiredTag, enableAd, account, mpConfig, }: IBuildWedaApp, cb?: WebpackBuildCallBack): Promise<any>;
|
|
63
|
+
export declare function buildWedaApp({ cals, subAppCalsList: _subAppCalsList, dependencies, appKey, runtime, ignoreInstall, buildTypeList, mode, devTool, deployOptions, generateMpType, plugins, extraData, resourceAppId, domain, output, isBrowserMpBuilder, cdnEndpoints, isPrivateMode, endpointType, enableExpiredTag, enableAd, account, mpConfig, }: IBuildWedaApp, cb?: WebpackBuildCallBack): Promise<any>;
|
|
64
64
|
export declare function cleanComponentDir(): Promise<void>;
|
|
65
65
|
export declare const version: any;
|
|
66
66
|
export { getFiles, fileToZip, strToBuf } from '../util/generateFiles';
|
|
@@ -56,7 +56,7 @@ async function buildWedaConfig({ output, domain = undefined, isPrivateMode = und
|
|
|
56
56
|
await (0, index_1.generateConfig)(data, outDir);
|
|
57
57
|
}
|
|
58
58
|
exports.buildWedaConfig = buildWedaConfig;
|
|
59
|
-
async function buildWedaApp({ cals, subAppCalsList = [], dependencies = [], appKey = 'test', runtime = types_1.RUNTIME.NONE, ignoreInstall = false, buildTypeList = [common_1.BuildType.WEB], mode = common_1.WebpackModeType.PRODUCTION, devTool = 'webpack', deployOptions = { mode: types_1.DEPLOY_MODE.PREVIEW }, generateMpType = common_1.GenerateMpType.APP, plugins = [], extraData = {
|
|
59
|
+
async function buildWedaApp({ cals, subAppCalsList: _subAppCalsList = [], dependencies = [], appKey = 'test', runtime = types_1.RUNTIME.NONE, ignoreInstall = false, buildTypeList = [common_1.BuildType.WEB], mode = common_1.WebpackModeType.PRODUCTION, devTool = 'webpack', deployOptions = { mode: types_1.DEPLOY_MODE.PREVIEW }, generateMpType = common_1.GenerateMpType.APP, plugins = [], extraData = {
|
|
60
60
|
isComposite: false,
|
|
61
61
|
compProps: {},
|
|
62
62
|
}, resourceAppId = undefined, domain = '', output, isBrowserMpBuilder = false, cdnEndpoints, isPrivateMode = false, endpointType = undefined, enableExpiredTag = false, enableAd = false, account = {}, mpConfig = {
|
|
@@ -176,6 +176,11 @@ async function buildWedaApp({ cals, subAppCalsList = [], dependencies = [], appK
|
|
|
176
176
|
if (!deployOptions.mode) {
|
|
177
177
|
deployOptions.mode = types_1.DEPLOY_MODE.PREVIEW;
|
|
178
178
|
}
|
|
179
|
+
/**
|
|
180
|
+
* 正规化子包数据
|
|
181
|
+
* 清除冗余字段
|
|
182
|
+
*/
|
|
183
|
+
const subAppCalsList = _subAppCalsList.map((cals) => (0, cals_1.streamlineSubApp)(cals));
|
|
179
184
|
/**
|
|
180
185
|
* 刷新正规化 packageName
|
|
181
186
|
*/
|