File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
packages/tailwindcss-language-server/src Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -531,6 +531,41 @@ testLocator({
531531 ] ,
532532} )
533533
534+ testLocator ( {
535+ name : 'Stylesheets that import Tailwind CSS indirectly are picked over ones that dont' ,
536+ fs : {
537+ 'a/foo.css' : css `
538+ @import './bar.css';
539+ .a {
540+ color: red;
541+ }
542+ ` ,
543+ 'a/bar.css' : css `
544+ .b {
545+ color: red;
546+ }
547+ ` ,
548+ 'src/app.css' : css `
549+ @import './tw.css';
550+ ` ,
551+ 'src/tw.css' : css `
552+ @import 'tailwindcss';
553+ ` ,
554+ } ,
555+ expected : [
556+ {
557+ version : '4.1.1 (bundled)' ,
558+ config : '/src/app.css' ,
559+ content : [ ] ,
560+ } ,
561+ {
562+ version : '4.1.1 (bundled)' ,
563+ config : '/a/foo.css' ,
564+ content : [ ] ,
565+ } ,
566+ ] ,
567+ } )
568+
534569testLocator ( {
535570 name : 'Stylesheets that only have URL imports are not considered roots' ,
536571 fs : {
You can’t perform that action at this time.
0 commit comments