Skip to content

Commit 919b07f

Browse files
committed
rename normalizedSources to globs
1 parent ae18d4c commit 919b07f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/@tailwindcss-cli/src/commands/build/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,5 +430,5 @@ async function createWatchers(dirs: string[], cb: (files: string[]) => void) {
430430
}
431431

432432
function watchDirectories(scanner: Scanner) {
433-
return [...new Set(scanner.normalizedSources.flatMap((globEntry) => globEntry.base))]
433+
return [...new Set(scanner.globs.flatMap((globEntry) => globEntry.base))]
434434
}

packages/@tailwindcss-postcss/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ function tailwindcss(opts: PluginOptions = {}): AcceptedPlugin {
238238
// Register dependencies so changes in `base` cause a rebuild while
239239
// giving tools like Vite or Parcel a glob that can be used to limit
240240
// the files that cause a rebuild to only those that match it.
241-
for (let { base: globBase, pattern } of context.scanner.normalizedSources) {
241+
for (let { base: globBase, pattern } of context.scanner.globs) {
242242
// Avoid adding a dependency on the base directory itself, since it
243243
// causes Next.js to start an endless recursion if the `distDir` is
244244
// configured to anything other than the default `.next` dir.

packages/@tailwindcss-vite/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ class Root {
273273
}
274274

275275
// Watch globs found via custom `@source` paths
276-
for (let glob of this.scanner.normalizedSources) {
276+
for (let glob of this.scanner.globs) {
277277
if (glob.pattern[0] === '!') continue
278278

279279
let relative = path.relative(this.base, glob.base)

0 commit comments

Comments
 (0)