Skip to content

Commit bf764bd

Browse files
refactor: code
1 parent 60e4f12 commit bf764bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/utils.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ async function loadConfig(config, context, configPath, loaderContext) {
133133
throw new Error(`No PostCSS Config found in: ${searchPath}`);
134134
}
135135

136+
if (!result) {
137+
return {};
138+
}
139+
136140
const patchedContext = createContext(context);
137141

138142
let resultConfig = result.config || {};

0 commit comments

Comments
 (0)