@next-core/brick-kit 2.159.4 → 2.159.5

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/dist/index.esm.js CHANGED
@@ -8107,8 +8107,11 @@ class Kernel {
8107
8107
  } = _this.bootstrapData;
8108
8108
  if (storyboard.dependsAll) {
8109
8109
  var dllPath = window.DLL_PATH || {};
8110
+ yield loadScriptOfDll(Object.values(dllPath));
8111
+ yield loadScriptOfBricksOrTemplates(brickPackages.map(item => item.filePath).concat(templatePackages.map(item => item.filePath)));
8112
+ yield loadAllLazyBricks();
8110
8113
  return {
8111
- pendingTask: loadScriptOfDll(Object.values(dllPath)).then(() => loadScriptOfBricksOrTemplates(brickPackages.map(item => item.filePath).concat(templatePackages.map(item => item.filePath)))).then(() => loadAllLazyBricks())
8114
+ pendingTask: Promise.resolve()
8112
8115
  };
8113
8116
  } else {
8114
8117
  // 先加载模板
@@ -8118,10 +8121,14 @@ class Kernel {
8118
8121
  var {
8119
8122
  dll,
8120
8123
  deps,
8121
- bricks
8124
+ bricks,
8125
+ byProcessors
8122
8126
  } = getDllAndDepsOfStoryboard(yield asyncProcessStoryboard(storyboard, brickTemplateRegistry, templatePackages), brickPackages, {
8123
8127
  ignoreBricksInUnusedCustomTemplates: true
8124
8128
  });
8129
+ // 需要先阻塞加载 Custom Processors。
8130
+ yield loadScriptOfDll(byProcessors.dll);
8131
+ yield loadScriptOfBricksOrTemplates(byProcessors.deps);
8125
8132
  // 加载构件资源时,不再阻塞后续业务数据的加载,在挂载构件时再等待该任务完成。
8126
8133
  // 挂载构件可能包括:Provider 构件实时挂载、路由准备完成后的统一挂载等。
8127
8134
  return {