@next-core/brick-utils 2.45.22 → 2.46.0
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
|
@@ -18225,25 +18225,30 @@
|
|
|
18225
18225
|
} = _ref;
|
|
18226
18226
|
var dll = new Set();
|
|
18227
18227
|
var deps = new Set();
|
|
18228
|
+
var v3Bricks = new Set();
|
|
18229
|
+
var v3Processors = new Set();
|
|
18228
18230
|
if ((bricks === null || bricks === void 0 ? void 0 : bricks.length) > 0 || (processors === null || processors === void 0 ? void 0 : processors.length) > 0 || (editorBricks === null || editorBricks === void 0 ? void 0 : editorBricks.length) > 0) {
|
|
18229
18231
|
var brickMap = getBrickToPackageMap(brickPackages);
|
|
18230
|
-
[...(bricks !== null && bricks !== void 0 ? bricks : []), ...(processors !== null && processors !== void 0 ? processors : [])].forEach(
|
|
18232
|
+
[...(bricks !== null && bricks !== void 0 ? bricks : []).map(n => [n]), ...(processors !== null && processors !== void 0 ? processors : []).map(n => [n, true])].forEach(_ref2 => {
|
|
18233
|
+
var [name, isProcessor] = _ref2;
|
|
18231
18234
|
// ignore custom template
|
|
18232
18235
|
// istanbul ignore else
|
|
18233
18236
|
if (name.includes(".")) {
|
|
18234
18237
|
var namespace = name.split(".")[0];
|
|
18235
|
-
var isProcessor = processors === null || processors === void 0 ? void 0 : processors.includes(name);
|
|
18236
|
-
|
|
18237
18238
|
// processor 是 camelCase 格式,转成 brick 的 param-case 格式,统一去判断
|
|
18238
18239
|
if (isProcessor) {
|
|
18239
18240
|
namespace = paramCase(namespace);
|
|
18240
18241
|
}
|
|
18241
18242
|
var find = brickMap.get(namespace);
|
|
18242
18243
|
if (find) {
|
|
18243
|
-
|
|
18244
|
-
|
|
18245
|
-
|
|
18246
|
-
|
|
18244
|
+
if (find.id) {
|
|
18245
|
+
(isProcessor ? v3Processors : v3Bricks).add(name);
|
|
18246
|
+
} else {
|
|
18247
|
+
deps.add(find.filePath);
|
|
18248
|
+
if (find.dll) {
|
|
18249
|
+
for (var dllName of find.dll) {
|
|
18250
|
+
dll.add(dllName);
|
|
18251
|
+
}
|
|
18247
18252
|
}
|
|
18248
18253
|
}
|
|
18249
18254
|
} else {
|
|
@@ -18274,7 +18279,9 @@
|
|
|
18274
18279
|
var dllPath = window.DLL_PATH;
|
|
18275
18280
|
return {
|
|
18276
18281
|
dll: Array.from(dll).map(dllName => dllPath[dllName]),
|
|
18277
|
-
deps: Array.from(deps)
|
|
18282
|
+
deps: Array.from(deps),
|
|
18283
|
+
v3Bricks: Array.from(v3Bricks),
|
|
18284
|
+
v3Processors: Array.from(v3Processors)
|
|
18278
18285
|
};
|
|
18279
18286
|
}
|
|
18280
18287
|
|