@@ -163,6 +163,8 @@ exports[`helpers / cssSnapshots with file 'import.module.css' createExports shou
163163 ' childA' : string ;
164164 ' childB' : string ;
165165 ' nestedChild' : string ;
166+ ' composed' : string ;
167+ ' composed-from-other-file' : string ;
166168 ' fadeIn' : string ;
167169} ;
168170export default _classes;
@@ -173,6 +175,7 @@ export let parent: string;
173175export let childA: string;
174176export let childB: string;
175177export let nestedChild: string;
178+ export let composed: string;
176179export let fadeIn: string;
177180"
178181` ;
@@ -185,6 +188,8 @@ exports[`helpers / cssSnapshots with file 'import.module.css' getCssExports shou
185188 " class-c" : " class-c" ,
186189 " classA" : " classA" ,
187190 " class_d" : " class_d" ,
191+ " composed" : " composed classA" ,
192+ " composed-from-other-file" : " composed-from-other-file i__imported_className_1" ,
188193 " fadeIn" : " fadeIn" ,
189194 " nestedChild" : " nestedChild" ,
190195 " parent" : " parent" ,
@@ -202,6 +207,8 @@ declare let _classes: {
202207 ' childA' : string ;
203208 ' childB' : string ;
204209 ' nestedChild' : string ;
210+ ' composed' : string ;
211+ ' composed-from-other-file' : string ;
205212 ' fadeIn' : string ;
206213} ;
207214export default _classes;
@@ -212,10 +219,11 @@ export let parent: string;
212219export let childA: string;
213220export let childB: string;
214221export let nestedChild: string;
222+ export let composed: string;
215223export let fadeIn: string;
216224
217225export const __cssModule: true;
218- export type AllClassNames = 'classA' | 'ClassB' | 'class-c' | 'class_d' | 'parent' | 'childA' | 'childB' | 'nestedChild' | 'fadeIn';"
226+ export type AllClassNames = 'classA' | 'ClassB' | 'class-c' | 'class_d' | 'parent' | 'childA' | 'childB' | 'nestedChild' | 'composed' | 'composed-from-other-file' | ' fadeIn';"
219227` ;
220228
221229exports [` helpers / cssSnapshots with file 'import.module.less' createExports should create an exports file 1` ] = `
@@ -388,6 +396,8 @@ exports[`helpers / cssSnapshots with file 'test.module.css' createExports should
388396 ' childA' : string ;
389397 ' childB' : string ;
390398 ' nestedChild' : string ;
399+ ' composed' : string ;
400+ ' composed-from-other-file' : string ;
391401 ' fadeIn' : string ;
392402} ;
393403export default _classes;
@@ -398,6 +408,7 @@ export let parent: string;
398408export let childA: string;
399409export let childB: string;
400410export let nestedChild: string;
411+ export let composed: string;
401412export let fadeIn: string;
402413"
403414` ;
@@ -410,6 +421,8 @@ exports[`helpers / cssSnapshots with file 'test.module.css' getCssExports should
410421 " class-c" : " class-c" ,
411422 " classA" : " classA" ,
412423 " class_d" : " class_d" ,
424+ " composed" : " composed classA" ,
425+ " composed-from-other-file" : " composed-from-other-file i__imported_className_2" ,
413426 " fadeIn" : " fadeIn" ,
414427 " nestedChild" : " nestedChild" ,
415428 " parent" : " parent" ,
@@ -427,6 +440,8 @@ declare let _classes: {
427440 ' childA' : string ;
428441 ' childB' : string ;
429442 ' nestedChild' : string ;
443+ ' composed' : string ;
444+ ' composed-from-other-file' : string ;
430445 ' fadeIn' : string ;
431446} ;
432447export default _classes;
@@ -437,10 +452,11 @@ export let parent: string;
437452export let childA: string;
438453export let childB: string;
439454export let nestedChild: string;
455+ export let composed: string;
440456export let fadeIn: string;
441457
442458export const __cssModule: true;
443- export type AllClassNames = 'classA' | 'ClassB' | 'class-c' | 'class_d' | 'parent' | 'childA' | 'childB' | 'nestedChild' | 'fadeIn';"
459+ export type AllClassNames = 'classA' | 'ClassB' | 'class-c' | 'class_d' | 'parent' | 'childA' | 'childB' | 'nestedChild' | 'composed' | 'composed-from-other-file' | ' fadeIn';"
444460` ;
445461
446462exports [` helpers / cssSnapshots with file 'test.module.less' createExports should create an exports file 1` ] = `
@@ -729,7 +745,7 @@ export type AllClassNames = 'foo' | 'bar' | 'baz' | 'col-1' | 'col-2' | 'col-3'
729745` ;
730746
731747exports [` helpers / cssSnapshots with goToDefinition enabled with CSS should return a line-accurate dts file 1` ] = `
732- "export let classA: string;
748+ "export let classA: string;export let composed: string;export let composedFromOtherFile: string;
733749
734750
735751
@@ -763,6 +779,13 @@ export let fadeIn: string;
763779
764780
765781
782+
783+
784+
785+
786+
787+
788+
766789declare let _classes: {
767790 ' classA' : string ;
768791 ' classB' : string ;
@@ -772,6 +795,8 @@ declare let _classes: {
772795 ' childA' : string ;
773796 ' childB' : string ;
774797 ' nestedChild' : string ;
798+ ' composed' : string ;
799+ ' composedFromOtherFile' : string ;
775800 ' fadeIn' : string ;
776801} ;
777802export default _classes;
@@ -787,6 +812,8 @@ exports[`helpers / cssSnapshots with goToDefinition enabled with CSS should retu
787812 " class-c" : " class-c" ,
788813 " classA" : " classA" ,
789814 " class_d" : " class_d" ,
815+ " composed" : " composed classA" ,
816+ " composed-from-other-file" : " composed-from-other-file i__imported_className_0" ,
790817 " fadeIn" : " fadeIn" ,
791818 " nestedChild" : " nestedChild" ,
792819 " parent" : " parent" ,
@@ -825,10 +852,17 @@ exports[`helpers / cssSnapshots with goToDefinition enabled with CSS should retu
825852 }
826853}
827854
855+ .composed {
856+ display : block ;
857+ }
858+
859+ .composed-from-other-file {
860+ }
861+
828862/*# sourceMappingURL=src/helpers/__tests__/fixtures/test.module.css.map */",
829863 "sourceMap": {
830864 " file" : " src/helpers/__tests__/fixtures/test.module.css" ,
831- " mappings" : " AAAA;EACE,oBAAoB;AACtB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,oBAAoB;EACpB,oBAAoB;AACtB;;AAGE;IACE,oBAAoB;EACtB;;AAEE;MACE,oBAAoB;IACtB;;AAIJ;EACE;IACE,UAAU;EACZ;EACA;IACE,UAAU;EACZ;AACF" ,
865+ " mappings" : " AAAA;EACE,oBAAoB;AACtB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,oBAAoB;EACpB,oBAAoB;AACtB;;AAGE;IACE,oBAAoB;EACtB;;AAEE;MACE,oBAAoB;IACtB;;AAIJ;EACE;IACE,UAAU;EACZ;EACA;IACE,UAAU;EACZ;AACF;;AAEA;EAEE,cAAc;AAChB;;AAEA;AAEA " ,
832866 " names" : [],
833867 " sources" : [
834868 " src/helpers/__tests__/fixtures/test.module.css" ,
@@ -870,6 +904,15 @@ exports[`helpers / cssSnapshots with goToDefinition enabled with CSS should retu
870904 opacity: 1 ;
871905 }
872906}
907+
908+ .composed {
909+ composes: classA ;
910+ display : block ;
911+ }
912+
913+ .composed - from - other - file {
914+ composes: className from ' ./_composed.css' ;
915+ }
873916" ,
874917 ],
875918 " version" : 3 ,
0 commit comments