@unocss/core 0.63.4 → 0.63.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.mjs +31 -7
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -482,23 +482,47 @@ function mergeContentOptions(optionsArray) {
|
|
|
482
482
|
const pipelineIncludes = [];
|
|
483
483
|
const pipelineExcludes = [];
|
|
484
484
|
let pipelineDisabled = false;
|
|
485
|
+
const filesystem = [];
|
|
486
|
+
const inline = [];
|
|
487
|
+
const plain = [];
|
|
485
488
|
for (const options of optionsArray) {
|
|
486
489
|
if (options.pipeline === false) {
|
|
487
490
|
pipelineDisabled = true;
|
|
491
|
+
break;
|
|
488
492
|
} else {
|
|
489
|
-
|
|
490
|
-
|
|
493
|
+
if (options.pipeline?.include) {
|
|
494
|
+
pipelineIncludes.push(options.pipeline.include);
|
|
495
|
+
}
|
|
496
|
+
if (options.pipeline?.exclude) {
|
|
497
|
+
pipelineExcludes.push(options.pipeline.exclude);
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
if (options.filesystem) {
|
|
501
|
+
filesystem.push(options.filesystem);
|
|
502
|
+
}
|
|
503
|
+
if (options.inline) {
|
|
504
|
+
inline.push(options.inline);
|
|
505
|
+
}
|
|
506
|
+
if (options.plain) {
|
|
507
|
+
plain.push(options.plain);
|
|
491
508
|
}
|
|
492
509
|
}
|
|
493
|
-
|
|
494
|
-
filesystem: uniq(optionsArray.flatMap((options) => options.filesystem ?? [])),
|
|
495
|
-
inline: uniq(optionsArray.flatMap((options) => options.inline ?? [])),
|
|
496
|
-
plain: uniq(optionsArray.flatMap((options) => options.plain ?? [])),
|
|
510
|
+
const mergedContent = {
|
|
497
511
|
pipeline: pipelineDisabled ? false : {
|
|
498
512
|
include: uniq(mergeFilterPatterns(...pipelineIncludes)),
|
|
499
513
|
exclude: uniq(mergeFilterPatterns(...pipelineExcludes))
|
|
500
514
|
}
|
|
501
515
|
};
|
|
516
|
+
if (filesystem.length) {
|
|
517
|
+
mergedContent.filesystem = uniq(filesystem.flat());
|
|
518
|
+
}
|
|
519
|
+
if (inline.length) {
|
|
520
|
+
mergedContent.inline = uniq(inline.flat());
|
|
521
|
+
}
|
|
522
|
+
if (plain.length) {
|
|
523
|
+
mergedContent.plain = uniq(plain.flat());
|
|
524
|
+
}
|
|
525
|
+
return mergedContent;
|
|
502
526
|
}
|
|
503
527
|
function resolveConfig(userConfig = {}, defaults = {}) {
|
|
504
528
|
const config = Object.assign({}, defaults, userConfig);
|
|
@@ -626,7 +650,7 @@ function definePreset(preset) {
|
|
|
626
650
|
return preset;
|
|
627
651
|
}
|
|
628
652
|
|
|
629
|
-
const version = "0.63.
|
|
653
|
+
const version = "0.63.5";
|
|
630
654
|
|
|
631
655
|
function createNanoEvents() {
|
|
632
656
|
return {
|