File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/@tailwindcss-cli/src/commands/build Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,9 @@ function handleImports(
244
244
// Relevant specification:
245
245
// - CSS Import Resolve: https://csstools.github.io/css-import-resolve/
246
246
247
- if ( ! input . includes ( '@import' ) ) return [ input , [ ] ]
247
+ if ( ! input . includes ( '@import' ) ) {
248
+ return [ input , [ file ] ]
249
+ }
248
250
249
251
return postcss ( )
250
252
. use ( atImport ( ) )
@@ -254,6 +256,8 @@ function handleImports(
254
256
255
257
// Use `result.messages` to get the imported files. This also includes the
256
258
// current file itself.
257
- result . messages . filter ( ( msg ) => msg . type === 'postcss-import' ) . map ( ( msg ) => msg . file ) ,
259
+ [ file ] . concat (
260
+ result . messages . filter ( ( msg ) => msg . type === 'dependency' ) . map ( ( msg ) => msg . file ) ,
261
+ ) ,
258
262
] )
259
263
}
You can’t perform that action at this time.
0 commit comments