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.
prev
false
options.sourceMap
1 parent e586f4a commit c4f0064Copy full SHA for c4f0064
lib/index.js
@@ -69,14 +69,14 @@ module.exports = function loader (css, map) {
69
: rc.ctx.options = {}
70
}
71
72
- delete options.config
73
-
74
const sourceMap = options.sourceMap
75
76
- delete options.sourceMap
77
78
Promise.resolve().then(() => {
79
- if (Object.keys(options).length !== 0) {
+ if (
+ Object.keys(options).length !== 0 ||
+ ((rc || sourceMap) && Object.keys(options).length > 1) ||
+ ((rc && sourceMap) && Object.keys(options).length > 2)
+ ) {
80
return parseOptions.call(this, options)
81
82
0 commit comments