File tree 2 files changed +13
-2
lines changed
packages/vite/src/node/plugins
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -168,21 +168,31 @@ Enabling this setting causes vite to determine file identity by the original fil
168
168
- ** Type:**
169
169
``` ts
170
170
interface CSSModulesOptions {
171
+ getJSON? : (
172
+ cssFileName : string ,
173
+ json : Record <string , string >,
174
+ outputFileName : string ,
175
+ ) => void
171
176
scopeBehaviour? : ' global' | ' local'
172
177
globalModulePaths? : RegExp []
178
+ exportGlobals? : boolean
173
179
generateScopedName? :
174
180
| string
175
181
| ((name : string , filename : string , css : string ) => string )
176
182
hashPrefix ?: string
177
183
/**
178
- * default: null
184
+ * default: undefined
179
185
*/
180
186
localsConvention ?:
181
187
| ' camelCase'
182
188
| ' camelCaseOnly'
183
189
| ' dashes'
184
190
| ' dashesOnly'
185
- | null
191
+ | ((
192
+ originalClassName : string ,
193
+ generatedClassName : string ,
194
+ inputFile : string ,
195
+ ) => string )
186
196
}
187
197
```
188
198
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ export interface CSSModulesOptions {
115
115
) => void
116
116
scopeBehaviour ?: 'global' | 'local'
117
117
globalModulePaths ?: RegExp [ ]
118
+ exportGlobals ?: boolean
118
119
generateScopedName ?:
119
120
| string
120
121
| ( ( name : string , filename : string , css : string ) => string )
You can’t perform that action at this time.
0 commit comments