@absolutejs/absolute 0.19.0-beta.776 → 0.19.0-beta.777
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/build.js +19 -9
- package/dist/build.js.map +3 -3
- package/dist/index.js +19 -9
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5520,12 +5520,9 @@ var compilerCache, cachedTailwindCompile = null, loadTailwindCompile = async ()
|
|
|
5520
5520
|
for (const source of sources) {
|
|
5521
5521
|
if (source.negated)
|
|
5522
5522
|
continue;
|
|
5523
|
-
const
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
const relative2 = absFile.slice(root.length + 1) || "";
|
|
5527
|
-
const glob = new Bun.Glob(source.pattern);
|
|
5528
|
-
if (glob.match(relative2) || glob.match(absFile))
|
|
5523
|
+
const absolutePattern = resolve2(source.base, source.pattern);
|
|
5524
|
+
const glob = new Bun.Glob(absolutePattern);
|
|
5525
|
+
if (glob.match(absFile))
|
|
5529
5526
|
return true;
|
|
5530
5527
|
}
|
|
5531
5528
|
return false;
|
|
@@ -5549,12 +5546,25 @@ var compilerCache, cachedTailwindCompile = null, loadTailwindCompile = async ()
|
|
|
5549
5546
|
entry.perFileCandidates.set(file, freshCandidates);
|
|
5550
5547
|
for (const candidate of freshCandidates)
|
|
5551
5548
|
incrementCandidateCount(entry, candidate);
|
|
5549
|
+
}, splitGlobAtFirstMeta = (absolutePattern) => {
|
|
5550
|
+
const firstMetaIndex = absolutePattern.search(/[*?{[]/);
|
|
5551
|
+
if (firstMetaIndex === -1) {
|
|
5552
|
+
return { glob: "", root: absolutePattern };
|
|
5553
|
+
}
|
|
5554
|
+
const lastSlashBeforeMeta = absolutePattern.lastIndexOf("/", firstMetaIndex);
|
|
5555
|
+
return {
|
|
5556
|
+
glob: absolutePattern.slice(lastSlashBeforeMeta + 1),
|
|
5557
|
+
root: absolutePattern.slice(0, lastSlashBeforeMeta) || "/"
|
|
5558
|
+
};
|
|
5552
5559
|
}, collectFilesForSources = async (sources) => {
|
|
5553
5560
|
const seen = new Set;
|
|
5554
5561
|
const collected = [];
|
|
5555
5562
|
const scans = sources.filter((source) => !source.negated).map(async (source) => {
|
|
5556
|
-
const
|
|
5557
|
-
const glob =
|
|
5563
|
+
const absolutePattern = resolve2(source.base, source.pattern);
|
|
5564
|
+
const { glob: relativePattern, root } = splitGlobAtFirstMeta(absolutePattern);
|
|
5565
|
+
if (!relativePattern)
|
|
5566
|
+
return [];
|
|
5567
|
+
const glob = new Bun.Glob(relativePattern);
|
|
5558
5568
|
const matches = [];
|
|
5559
5569
|
for await (const relative2 of glob.scan({
|
|
5560
5570
|
absolute: false,
|
|
@@ -26393,5 +26403,5 @@ export {
|
|
|
26393
26403
|
ANGULAR_INIT_TIMEOUT_MS
|
|
26394
26404
|
};
|
|
26395
26405
|
|
|
26396
|
-
//# debugId=
|
|
26406
|
+
//# debugId=F5298FBD548286E764756E2164756E21
|
|
26397
26407
|
//# sourceMappingURL=index.js.map
|