Skip to content
This repository was archived by the owner on Jun 6, 2022. It is now read-only.

Commit c49bc10

Browse files
committed
Fixed: the module now works in non babel environments
1 parent a84b041 commit c49bc10

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.0.1 - 2015-04-30
2+
3+
- Fixed: the module now works in non babel environments
4+
15
# 1.0.0 - 2015-04-30
26

37
✨ First release

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcss-selector-not",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "PostCSS plugin to transform :not() W3C CSS leve 4 pseudo class to :not() CSS level 3 selectors",
55
"keywords": [
66
"postcss",

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function explodeSelector(pseudoClass, selector) {
1212
const bodySelectors = matches.body ?
1313
list
1414
.comma(matches.body)
15-
.reduce((acc, s) => [...acc, ...explodeSelector(pseudoClass, s)], {})
15+
.reduce((acc, s) => [...acc, ...explodeSelector(pseudoClass, s)], [])
1616
: [""]
1717
const postSelectors = matches.post ? explodeSelector(pseudoClass, matches.post) : [""]
1818
postSelectors.forEach(postSelector => {

0 commit comments

Comments
 (0)