@next-core/brick-utils 2.45.17 → 2.45.18
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
|
@@ -18145,6 +18145,7 @@ function collectBricksByCustomTemplates(customTemplates) {
|
|
|
18145
18145
|
return collectionByTpl;
|
|
18146
18146
|
}
|
|
18147
18147
|
|
|
18148
|
+
var widgetRegExp = /\.tpl-/;
|
|
18148
18149
|
function getDllAndDepsOfStoryboard(storyboard, brickPackages, options) {
|
|
18149
18150
|
var _storyboard$meta;
|
|
18150
18151
|
var {
|
|
@@ -18153,11 +18154,13 @@ function getDllAndDepsOfStoryboard(storyboard, brickPackages, options) {
|
|
|
18153
18154
|
} = scanStoryboard(storyboard, options);
|
|
18154
18155
|
var customTemplates = (_storyboard$meta = storyboard.meta) === null || _storyboard$meta === void 0 ? void 0 : _storyboard$meta.customTemplates;
|
|
18155
18156
|
var processors = scanProcessorsInAny([storyboard.routes, options !== null && options !== void 0 && options.ignoreBricksInUnusedCustomTemplates ? customTemplates === null || customTemplates === void 0 ? void 0 : customTemplates.filter(tpl => usedTemplates.includes(tpl.name)) : customTemplates]);
|
|
18157
|
+
var widgets = bricks.filter(brick => widgetRegExp.test(brick));
|
|
18156
18158
|
return _objectSpread(_objectSpread({}, getDllAndDepsByResource({
|
|
18157
18159
|
bricks,
|
|
18158
18160
|
processors
|
|
18159
18161
|
}, brickPackages)), {}, {
|
|
18160
|
-
|
|
18162
|
+
eager: getDllAndDepsByResource({
|
|
18163
|
+
bricks: widgets,
|
|
18161
18164
|
processors
|
|
18162
18165
|
}, brickPackages),
|
|
18163
18166
|
bricks
|