We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 125c57b commit 03ffa45Copy full SHA for 03ffa45
packages/@tailwindcss-postcss/src/index.ts
@@ -211,10 +211,15 @@ function tailwindcss(opts: PluginOptions = {}): AcceptedPlugin {
211
DEBUG && I.start('Register dependency messages')
212
// Add all found files as direct dependencies
213
for (let file of context.scanner.files) {
214
+ let absolutePath = path.resolve(file)
215
+ // The CSS file cannot be a dependency of itself
216
+ if (absolutePath === result.opts.from) {
217
+ continue
218
+ }
219
result.messages.push({
220
type: 'dependency',
221
plugin: '@tailwindcss/postcss',
- file: path.resolve(file),
222
+ file: absolutePath,
223
parent: result.opts.from,
224
})
225
}
0 commit comments