@cloudbase/lowcode-builder 1.8.77 → 1.8.79

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.
@@ -112,7 +112,11 @@ async function generateWxMp({ buildContext: _buildContext, weapps, calses, deplo
112
112
  ..._buildContext,
113
113
  wedaRoot: (0, util_3.normalizeWedaRoot)(projectConfigJson.wedaRoot),
114
114
  };
115
- // #2 生成主包, 若主包为代码包,则下载了基础项目代码,包涵项目 projectConfigJson
115
+ // #1.5 安装依赖库,生成 materials 目录副作用修改了buildContext 因此需要早于页面生成
116
+ if (hasLowcodePkg) {
117
+ await (0, materials_1.installMaterials)(buildContext, localWedaRoot, used, weapps);
118
+ }
119
+ // #2 生成主包, 若主包为代码包上游已经处理过,不再处理
116
120
  if (mainAppData.mpPkgUrl) {
117
121
  }
118
122
  else {
@@ -121,8 +125,6 @@ async function generateWxMp({ buildContext: _buildContext, weapps, calses, deplo
121
125
  // #3 生成 wedaRoot 文件
122
126
  if (hasLowcodePkg) {
123
127
  await generateFramework(buildContext, { cals: calses[0], weapp: mainAppData }, localWedaRoot, { deployOptions });
124
- // 安装依赖库,生成 materials 目录
125
- await (0, materials_1.installMaterials)(buildContext, localWedaRoot, used, weapps);
126
128
  await generateConfig({
127
129
  domain,
128
130
  isPrivateMode,