File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ function tailwindcss(opts: PluginOptions = {}): AcceptedPlugin {
222
222
// Register dependencies so changes in `base` cause a rebuild while
223
223
// giving tools like Vite or Parcel a glob that can be used to limit
224
224
// 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 ) {
226
226
// Avoid adding a dependency on the base directory itself, since it
227
227
// causes Next.js to start an endless recursion if the `distDir` is
228
228
// configured to anything other than the default `.next` dir.
Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ class Root {
306
306
}
307
307
308
308
// Watch globs found via custom `@source` paths
309
- for ( let glob of this . scanner . globs ) {
309
+ for ( let glob of this . scanner . normalizedSources ) {
310
310
if ( glob . pattern [ 0 ] === '!' ) continue
311
311
312
312
let relative = path . relative ( this . base , glob . base )
You can’t perform that action at this time.
0 commit comments