File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ export default function thunder(input: Options = {}): Plugin {
64
64
if ( ! filter ( id ) ) return null ;
65
65
const options = {
66
66
...opts ,
67
- cssModules : opts . cssModules || ( input . autoModules && modulesFilter ( id ) ) ,
67
+ cssModules : opts . cssModules ?? ( input . autoModules && modulesFilter ( id ) ) ,
68
68
filename : id ,
69
69
resolver : {
70
70
resolve : ( specifier : string , from : string ) =>
@@ -77,7 +77,7 @@ export default function thunder(input: Options = {}): Plugin {
77
77
const map = "map" in res ? res . map ?. toString ( ) : undefined ;
78
78
let code = `export default ${ JSON . stringify ( res . code . toString ( ) ) } ;` ;
79
79
80
- if ( "cssModules" in options ) {
80
+ if ( options . cssModules ) {
81
81
code += Object . entries ( res . exports ?? { } )
82
82
. map (
83
83
( [ key , exp ] ) =>
You can’t perform that action at this time.
0 commit comments