@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.bundle.js
CHANGED
|
@@ -18150,6 +18150,7 @@
|
|
|
18150
18150
|
return collectionByTpl;
|
|
18151
18151
|
}
|
|
18152
18152
|
|
|
18153
|
+
var widgetRegExp = /\.tpl-/;
|
|
18153
18154
|
function getDllAndDepsOfStoryboard(storyboard, brickPackages, options) {
|
|
18154
18155
|
var _storyboard$meta;
|
|
18155
18156
|
var {
|
|
@@ -18158,11 +18159,13 @@
|
|
|
18158
18159
|
} = scanStoryboard(storyboard, options);
|
|
18159
18160
|
var customTemplates = (_storyboard$meta = storyboard.meta) === null || _storyboard$meta === void 0 ? void 0 : _storyboard$meta.customTemplates;
|
|
18160
18161
|
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]);
|
|
18162
|
+
var widgets = bricks.filter(brick => widgetRegExp.test(brick));
|
|
18161
18163
|
return _objectSpread__default["default"](_objectSpread__default["default"]({}, getDllAndDepsByResource({
|
|
18162
18164
|
bricks,
|
|
18163
18165
|
processors
|
|
18164
18166
|
}, brickPackages)), {}, {
|
|
18165
|
-
|
|
18167
|
+
eager: getDllAndDepsByResource({
|
|
18168
|
+
bricks: widgets,
|
|
18166
18169
|
processors
|
|
18167
18170
|
}, brickPackages),
|
|
18168
18171
|
bricks
|