Skip to content

Commit 7ad0988

Browse files
author
Bart Veneman
committed
fewer loops/memory to stringify layer names
1 parent 360db34 commit 7ad0988

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,7 @@ const analyze = (css) => {
206206
const prelude = stringifyNode(node.prelude)
207207
prelude.trim()
208208
.split(',')
209-
.map(name => name.trim())
210-
.forEach(name => layers.push(name))
209+
.forEach(name => layers.push(name.trim()))
211210
}
212211
break
213212
}

0 commit comments

Comments
 (0)