postcss / postcss-selector-matches

PostCSS plugin to transform :matches() W3C CSS pseudo class to more compatible CSS (simpler selectors)
MIT License
44 stars 9 forks source link

Throws when using inside of cssnext #5

Closed Antontelesh closed 9 years ago

Antontelesh commented 9 years ago

Here is the exception message:

.../node_modules/cssnext/dist/features.js:51
    return require("postcss-selector-matches")(options);
                                              ^
TypeError: object is not a function

Seems like postcss-selector-matches is no more a function. Maybe v1.2.0 release should be a major one as it has breaking changes.

MoOx commented 9 years ago

The change is not intentional. I will push a fix.

MoOx commented 9 years ago

Fix released as 1.2.1, please uninstall and reinstall cssnext (this should update postcss-selector-matches to 1.2.1)

bradbarrow commented 9 years ago

Just scrambled to fix this in production...thanks for fixing it @MoOx

I guess shrinkwrapping my repo was a valuable step to take either way.

Antontelesh commented 9 years ago

@MoOx thank you for the really quick fix!

vigneshshanmugam commented 9 years ago

@MoOx That was really fast. Thanks :)