We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b9cfac commit 5de9916Copy full SHA for 5de9916
src/index.js
@@ -131,7 +131,7 @@ export default function transformCssModules({ types: t }) {
131
},
132
post() {
133
// extract css only if is this option set
134
- if (thisPluginOptions.extractCss) {
+ if (thisPluginOptions && thisPluginOptions.extractCss) {
135
// always rewrite file :-/
136
extractCssFile(
137
process.cwd(),
0 commit comments