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(
244244 // Relevant specification:
245245 // - CSS Import Resolve: https://csstools.github.io/css-import-resolve/
246246
247- if ( ! input . includes ( '@import' ) ) return [ input , [ ] ]
247+ if ( ! input . includes ( '@import' ) ) {
248+ return [ input , [ file ] ]
249+ }
248250
249251 return postcss ( )
250252 . use ( atImport ( ) )
@@ -254,6 +256,8 @@ function handleImports(
254256
255257 // Use `result.messages` to get the imported files. This also includes the
256258 // 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+ ) ,
258262 ] )
259263}
You can’t perform that action at this time.
0 commit comments