Skip to content

Commit 071caf2

Browse files
authored
Update index.js
1 parent 4c1fde9 commit 071caf2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ const schema = {
3131
description: "Disable the use of locals export. Defaults to `false`",
3232
type: "boolean",
3333
},
34+
enableDefaultExport: {
35+
description: "Enable 'export default'. Defaults to `false`.",
36+
type: "boolean",
37+
},
3438
verifyOnly: {
3539
description:
3640
"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) {
8892
const cssModuleDefinition = generateGenericExportInterface(
8993
cssModuleKeys,
9094
filenameToPascalCase(filename),
91-
options.disableLocalsExport
95+
options.disableLocalsExport,
96+
options.enableDefaultExport
9297
);
9398

9499
applyFormattingAndOptions(cssModuleDefinition, options)

0 commit comments

Comments
 (0)