We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
vitejs
Learn more about funding links in repositories.
Report abuse
1 parent 75dbca2 commit c9274b4Copy full SHA for c9274b4
packages/vite/src/node/plugins/css.ts
@@ -103,7 +103,16 @@ export interface CSSModulesOptions {
103
/**
104
* default: undefined
105
*/
106
- localsConvention?: 'camelCase' | 'camelCaseOnly' | 'dashes' | 'dashesOnly'
+ localsConvention?:
107
+ | 'camelCase'
108
+ | 'camelCaseOnly'
109
+ | 'dashes'
110
+ | 'dashesOnly'
111
+ | ((
112
+ originalClassName: string,
113
+ generatedClassName: string,
114
+ inputFile: string
115
+ ) => string)
116
}
117
118
const cssModuleRE = new RegExp(`\\.module${CSS_LANGS_RE.source}`)
0 commit comments