File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -333,7 +333,14 @@ const configSchema = {
333
333
type : 'boolean' ,
334
334
} ,
335
335
optimizeCss : {
336
- type : 'boolean' ,
336
+ oneOf : [
337
+ {
338
+ type : 'boolean' ,
339
+ } ,
340
+ {
341
+ type : 'object' ,
342
+ } ,
343
+ ] as any ,
337
344
} ,
338
345
outputFileTracingRoot : {
339
346
minLength : 1 ,
Original file line number Diff line number Diff line change @@ -94,7 +94,10 @@ export interface ExperimentalConfig {
94
94
isrFlushToDisk ?: boolean
95
95
workerThreads ?: boolean
96
96
pageEnv ?: boolean
97
- optimizeCss ?: boolean
97
+ // optimizeCss can be boolean or critters' option object
98
+ // Use Record<string, unknown> as critters doesn't export its Option type
99
+ // https://github.com/GoogleChromeLabs/critters/blob/a590c05f9197b656d2aeaae9369df2483c26b072/packages/critters/src/index.d.ts
100
+ optimizeCss ?: boolean | Record < string , unknown >
98
101
nextScriptWorkers ?: boolean
99
102
scrollRestoration ?: boolean
100
103
externalDir ?: boolean
You can’t perform that action at this time.
0 commit comments