Skip to content

Commit e97a671

Browse files
committed
Fixed error when loader processes file with no theme vars
1 parent 0ac9926 commit e97a671

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/loader.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ module.exports = function (source, map) {
6161
return null;
6262
});
6363
}).then(function (prevResult) {
64+
// no theme css processing needed
65+
if (!prevResult) { return; }
66+
6467
const content = prevResult.themeCss;
6568

6669
const options = loaderUtils.getOptions(loader) || {};

0 commit comments

Comments
 (0)