@@ -11,7 +11,7 @@ test('Config files can add content', async () => {
11
11
@config "./config.js" ;
12
12
`
13
13
14
- let compiler = await compile ( input , '/root' , {
14
+ let compiler = await compile ( input , {
15
15
loadModule : async ( ) => ( { module : { content : [ './file.txt' ] } , base : '/root' } ) ,
16
16
} )
17
17
@@ -24,7 +24,7 @@ test('Config files can change dark mode (media)', async () => {
24
24
@config "./config.js" ;
25
25
`
26
26
27
- let compiler = await compile ( input , '/root' , {
27
+ let compiler = await compile ( input , {
28
28
loadModule : async ( ) => ( { module : { darkMode : 'media' } , base : '/root' } ) ,
29
29
} )
30
30
@@ -44,7 +44,7 @@ test('Config files can change dark mode (selector)', async () => {
44
44
@config "./config.js" ;
45
45
`
46
46
47
- let compiler = await compile ( input , '/root' , {
47
+ let compiler = await compile ( input , {
48
48
loadModule : async ( ) => ( { module : { darkMode : 'selector' } , base : '/root' } ) ,
49
49
} )
50
50
@@ -64,7 +64,7 @@ test('Config files can change dark mode (variant)', async () => {
64
64
@config "./config.js" ;
65
65
`
66
66
67
- let compiler = await compile ( input , '/root' , {
67
+ let compiler = await compile ( input , {
68
68
loadModule : async ( ) => ( {
69
69
module : { darkMode : [ 'variant' , '&:where(:not(.light))' ] } ,
70
70
base : '/root' ,
@@ -87,7 +87,7 @@ test('Config files can add plugins', async () => {
87
87
@config "./config.js" ;
88
88
`
89
89
90
- let compiler = await compile ( input , '/root' , {
90
+ let compiler = await compile ( input , {
91
91
loadModule : async ( ) => ( {
92
92
module : {
93
93
plugins : [
@@ -118,7 +118,7 @@ test('Plugins loaded from config files can contribute to the config', async () =
118
118
@config "./config.js" ;
119
119
`
120
120
121
- let compiler = await compile ( input , '/root' , {
121
+ let compiler = await compile ( input , {
122
122
loadModule : async ( ) => ( {
123
123
module : {
124
124
plugins : [
@@ -147,7 +147,7 @@ test('Config file presets can contribute to the config', async () => {
147
147
@config "./config.js" ;
148
148
`
149
149
150
- let compiler = await compile ( input , '/root' , {
150
+ let compiler = await compile ( input , {
151
151
loadModule : async ( ) => ( {
152
152
module : {
153
153
presets : [
@@ -176,7 +176,7 @@ test('Config files can affect the theme', async () => {
176
176
@config "./config.js" ;
177
177
`
178
178
179
- let compiler = await compile ( input , '/root' , {
179
+ let compiler = await compile ( input , {
180
180
loadModule : async ( ) => ( {
181
181
module : {
182
182
theme : {
@@ -220,7 +220,7 @@ test('Variants in CSS overwrite variants from plugins', async () => {
220
220
@variant light (& : is (.my-light ));
221
221
`
222
222
223
- let compiler = await compile ( input , '/root' , {
223
+ let compiler = await compile ( input , {
224
224
loadModule : async ( ) => ( {
225
225
module : {
226
226
darkMode : [ 'variant' , '&:is(.dark)' ] ,
@@ -270,7 +270,7 @@ describe('theme callbacks', () => {
270
270
@config "./config.js" ;
271
271
`
272
272
273
- let compiler = await compile ( input , '/root' , {
273
+ let compiler = await compile ( input , {
274
274
loadModule : async ( ) => ( {
275
275
module : {
276
276
theme : {
@@ -381,7 +381,7 @@ describe('theme overrides order', () => {
381
381
@config "./config.js" ;
382
382
`
383
383
384
- let compiler = await compile ( input , '/root' , {
384
+ let compiler = await compile ( input , {
385
385
loadModule : async ( ) => ( {
386
386
module : {
387
387
theme : {
@@ -427,7 +427,7 @@ describe('theme overrides order', () => {
427
427
@plugin "./plugin.js" ;
428
428
`
429
429
430
- let compiler = await compile ( input , '/root' , {
430
+ let compiler = await compile ( input , {
431
431
loadModule : async ( id ) => {
432
432
if ( id . includes ( 'config.js' ) ) {
433
433
return {
@@ -555,7 +555,7 @@ describe('default font family compatibility', () => {
555
555
@tailwind utilities;
556
556
`
557
557
558
- let compiler = await compile ( input , '/root' , {
558
+ let compiler = await compile ( input , {
559
559
loadModule : async ( ) => ( {
560
560
module : {
561
561
theme : {
@@ -594,7 +594,7 @@ describe('default font family compatibility', () => {
594
594
@tailwind utilities;
595
595
`
596
596
597
- let compiler = await compile ( input , '/root' , {
597
+ let compiler = await compile ( input , {
598
598
loadModule : async ( ) => ( {
599
599
module : {
600
600
theme : {
@@ -634,7 +634,7 @@ describe('default font family compatibility', () => {
634
634
@tailwind utilities;
635
635
`
636
636
637
- let compiler = await compile ( input , '/root' , {
637
+ let compiler = await compile ( input , {
638
638
loadModule : async ( ) => ( {
639
639
module : {
640
640
theme : {
@@ -674,7 +674,7 @@ describe('default font family compatibility', () => {
674
674
@tailwind utilities;
675
675
`
676
676
677
- let compiler = await compile ( input , '/root' , {
677
+ let compiler = await compile ( input , {
678
678
loadModule : async ( ) => ( {
679
679
module : {
680
680
theme : {
@@ -721,7 +721,7 @@ describe('default font family compatibility', () => {
721
721
@tailwind utilities;
722
722
`
723
723
724
- let compiler = await compile ( input , '/root' , {
724
+ let compiler = await compile ( input , {
725
725
loadModule : async ( ) => ( {
726
726
module : {
727
727
theme : {
@@ -761,7 +761,7 @@ describe('default font family compatibility', () => {
761
761
@tailwind utilities;
762
762
`
763
763
764
- let compiler = await compile ( input , '/root' , {
764
+ let compiler = await compile ( input , {
765
765
loadModule : async ( ) => ( {
766
766
module : {
767
767
theme : {
@@ -800,7 +800,7 @@ describe('default font family compatibility', () => {
800
800
@tailwind utilities;
801
801
`
802
802
803
- let compiler = await compile ( input , '/root' , {
803
+ let compiler = await compile ( input , {
804
804
loadModule : async ( ) => ( {
805
805
module : {
806
806
theme : {
@@ -834,7 +834,7 @@ describe('default font family compatibility', () => {
834
834
@tailwind utilities;
835
835
`
836
836
837
- let compiler = await compile ( input , '/root' , {
837
+ let compiler = await compile ( input , {
838
838
loadModule : async ( ) => ( {
839
839
module : {
840
840
theme : {
@@ -873,7 +873,7 @@ describe('default font family compatibility', () => {
873
873
@tailwind utilities;
874
874
`
875
875
876
- let compiler = await compile ( input , '/root' , {
876
+ let compiler = await compile ( input , {
877
877
loadModule : async ( ) => ( {
878
878
module : {
879
879
theme : {
@@ -913,7 +913,7 @@ describe('default font family compatibility', () => {
913
913
@tailwind utilities;
914
914
`
915
915
916
- let compiler = await compile ( input , '/root' , {
916
+ let compiler = await compile ( input , {
917
917
loadModule : async ( ) => ( {
918
918
module : {
919
919
theme : {
@@ -953,7 +953,7 @@ describe('default font family compatibility', () => {
953
953
@tailwind utilities;
954
954
`
955
955
956
- let compiler = await compile ( input , '/root' , {
956
+ let compiler = await compile ( input , {
957
957
loadModule : async ( ) => ( {
958
958
module : {
959
959
theme : {
@@ -1000,7 +1000,7 @@ describe('default font family compatibility', () => {
1000
1000
@tailwind utilities;
1001
1001
`
1002
1002
1003
- let compiler = await compile ( input , '/root' , {
1003
+ let compiler = await compile ( input , {
1004
1004
loadModule : async ( ) => ( {
1005
1005
module : {
1006
1006
theme : {
@@ -1040,7 +1040,7 @@ describe('default font family compatibility', () => {
1040
1040
@tailwind utilities;
1041
1041
`
1042
1042
1043
- let compiler = await compile ( input , '/root' , {
1043
+ let compiler = await compile ( input , {
1044
1044
loadModule : async ( ) => ( {
1045
1045
module : {
1046
1046
theme : {
@@ -1070,7 +1070,7 @@ test('creates variants for `data`, `supports`, and `aria` theme options at the s
1070
1070
@config "./config.js" ;
1071
1071
`
1072
1072
1073
- let compiler = await compile ( input , '/root' , {
1073
+ let compiler = await compile ( input , {
1074
1074
loadModule : async ( ) => ( {
1075
1075
module : {
1076
1076
theme : {
@@ -1169,7 +1169,7 @@ test('merges css breakpoints with js config screens', async () => {
1169
1169
@tailwind utilities;
1170
1170
`
1171
1171
1172
- let compiler = await compile ( input , '/root' , {
1172
+ let compiler = await compile ( input , {
1173
1173
loadModule : async ( ) => ( {
1174
1174
module : {
1175
1175
theme : {
0 commit comments