File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -420,20 +420,18 @@ function localizeDeclaration(declaration, context) {
420
420
}
421
421
422
422
module . exports = ( options = { } ) => {
423
- if ( options && options . mode ) {
424
- if (
425
- options . mode !== "global" &&
426
- options . mode !== "local" &&
427
- options . mode !== "pure"
428
- ) {
429
- throw new Error (
430
- 'options.mode must be either "global", "local" or "pure" (default "local")'
431
- ) ;
432
- }
423
+ if (
424
+ options . mode !== "global" &&
425
+ options . mode !== "local" &&
426
+ options . mode !== "pure"
427
+ ) {
428
+ throw new Error (
429
+ 'options.mode must be either "global", "local" or "pure" (default "local")'
430
+ ) ;
433
431
}
434
432
435
- const pureMode = options && options . mode === "pure" ;
436
- const globalMode = options && options . mode === "global" ;
433
+ const pureMode = options . mode === "pure" ;
434
+ const globalMode = options . mode === "global" ;
437
435
438
436
return {
439
437
postcssPlugin : "postcss-modules-local-by-default" ,
You can’t perform that action at this time.
0 commit comments