Skip to content

Commit 3e1c7fa

Browse files
authoredNov 24, 2017
fix(index): filter ident (options.ident) (#315)
1 parent f33131c commit 3e1c7fa

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed
 

‎lib/index.js

+10-6
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,16 @@ module.exports = function loader (css, map) {
5151

5252
Promise.resolve().then(() => {
5353
const length = Object.keys(options)
54-
.filter((option) => {
55-
// if (option === 'exec') return
56-
if (option === 'config') return
57-
if (option === 'sourceMap') return
58-
59-
return option
54+
.filter((option) => {
55+
switch (option) {
56+
// case 'exec':
57+
case 'ident':
58+
case 'config':
59+
case 'sourceMap':
60+
return
61+
default:
62+
return option
63+
}
6064
})
6165
.length
6266

0 commit comments

Comments
 (0)
Please sign in to comment.