File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ const schema = {
31
31
description : "Disable the use of locals export. Defaults to `false`" ,
32
32
type : "boolean" ,
33
33
} ,
34
+ enableDefaultExport : {
35
+ description : "Enable 'export default'. Defaults to `false`." ,
36
+ type : "boolean" ,
37
+ } ,
34
38
verifyOnly : {
35
39
description :
36
40
"Validate generated `*.d.ts` files and fail if an update is needed (useful in CI). Defaults to `false`" ,
@@ -88,7 +92,8 @@ module.exports = function (content, ...args) {
88
92
const cssModuleDefinition = generateGenericExportInterface (
89
93
cssModuleKeys ,
90
94
filenameToPascalCase ( filename ) ,
91
- options . disableLocalsExport
95
+ options . disableLocalsExport ,
96
+ options . enableDefaultExport
92
97
) ;
93
98
94
99
applyFormattingAndOptions ( cssModuleDefinition , options )
You can’t perform that action at this time.
0 commit comments