Skip to content

Commit dc089fc

Browse files
Use normalized sources everywhere
1 parent 41e1ac2 commit dc089fc

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
@@ -222,7 +222,7 @@ function tailwindcss(opts: PluginOptions = {}): AcceptedPlugin {
222222
// Register dependencies so changes in `base` cause a rebuild while
223223
// giving tools like Vite or Parcel a glob that can be used to limit
224224
// the files that cause a rebuild to only those that match it.
225-
for (let { base: globBase, pattern } of context.scanner.globs) {
225+
for (let { base: globBase, pattern } of context.scanner.normalizedSources) {
226226
// Avoid adding a dependency on the base directory itself, since it
227227
// causes Next.js to start an endless recursion if the `distDir` is
228228
// 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
@@ -306,7 +306,7 @@ class Root {
306306
}
307307

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

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

0 commit comments

Comments
 (0)