diff --git a/CHANGELOG.md b/CHANGELOG.md index 07fa9c953329..99753fab4788 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Ensure `@import "…" reference` never generates utilities ([#15307](https://github.com/tailwindlabs/tailwindcss/pull/15307)) +- Fix dependency related warnings when using `@tailwindcss/postcss` on Windows ## [4.0.0-beta.5] - 2024-12-04 diff --git a/packages/@tailwindcss-postcss/src/index.ts b/packages/@tailwindcss-postcss/src/index.ts index d40d34bc3d98..a58820e7140a 100644 --- a/packages/@tailwindcss-postcss/src/index.ts +++ b/packages/@tailwindcss-postcss/src/index.ts @@ -106,7 +106,7 @@ function tailwindcss(opts: PluginOptions = {}): AcceptedPlugin { result.messages.push({ type: 'dependency', plugin: '@tailwindcss/postcss', - file, + file: path.resolve(file), parent: result.opts.from, }) } @@ -174,7 +174,7 @@ function tailwindcss(opts: PluginOptions = {}): AcceptedPlugin { result.messages.push({ type: 'dependency', plugin: '@tailwindcss/postcss', - file, + file: path.resolve(file), parent: result.opts.from, }) } @@ -194,14 +194,14 @@ function tailwindcss(opts: PluginOptions = {}): AcceptedPlugin { result.messages.push({ type: 'dependency', plugin: '@tailwindcss/postcss', - file: globBase, + file: path.resolve(globBase), parent: result.opts.from, }) } else { result.messages.push({ type: 'dir-dependency', plugin: '@tailwindcss/postcss', - dir: globBase, + dir: path.resolve(globBase), glob: pattern, parent: result.opts.from, })