Skip to content

Commit 5de9916

Browse files
🐛 fix checking for extractCss config option
1 parent 6b9cfac commit 5de9916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export default function transformCssModules({ types: t }) {
131131
},
132132
post() {
133133
// extract css only if is this option set
134-
if (thisPluginOptions.extractCss) {
134+
if (thisPluginOptions && thisPluginOptions.extractCss) {
135135
// always rewrite file :-/
136136
extractCssFile(
137137
process.cwd(),

0 commit comments

Comments
 (0)