We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
options
1 parent b9c1add commit 61ff03cCopy full SHA for 61ff03c
lib/index.js
@@ -40,7 +40,7 @@ const SyntaxError = require('./Error')
40
* @return {cb} cb Result
41
*/
42
module.exports = function loader (css, map) {
43
- const options = loaderUtils.getOptions(this) || {}
+ const options = Object.assign({}, loaderUtils.getOptions(this))
44
45
validateOptions(require('./options.json'), options, 'PostCSS Loader')
46
@@ -51,7 +51,7 @@ module.exports = function loader (css, map) {
51
52
Promise.resolve().then(() => {
53
const length = Object.keys(options)
54
- .filter((option) => {
+ .filter((option) => {
55
switch (option) {
56
// case 'exec':
57
case 'ident':
0 commit comments