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 753dea7 commit 7ae6190Copy full SHA for 7ae6190
lib/index.js
@@ -165,7 +165,7 @@ module.exports = function loader (css, map) {
165
* @param {String} result Result (JS Module)
166
* @param {Object} map Source Map
167
*/
168
- return cb(null, `module.exports = ${JSON.stringify(css)}`, map)
+ return cb(null, `module.exports = ${JSON.stringify(css)}`, map) || null
169
}
170
/**
171
* @memberof loader
@@ -175,7 +175,7 @@ module.exports = function loader (css, map) {
175
* @param {String} css Result (Raw Module)
176
177
178
- return cb(null, css, map)
+ return cb(null, css, map) || null
179
})
180
}).catch((err) => {
181
return err.name === 'CssSyntaxError' ? cb(new SyntaxError(err)) : cb(err)
0 commit comments