Skip to content

Commit 1191f53

Browse files
Use normalized sources everywhere
1 parent 6a0a3ec commit 1191f53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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.globs) {
241+
for (let { base: globBase, pattern } of context.scanner.normalizedSources) {
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.globs) {
276+
for (let glob of this.scanner.normalizedSources) {
277277
if (glob.pattern[0] === '!') continue
278278

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

0 commit comments

Comments
 (0)