We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c770b6 commit d5a34fcCopy full SHA for d5a34fc
1 file changed
src/index.js
@@ -4,7 +4,7 @@ import nesting from 'postcss-nesting';
4
const functionalSelectorMatch = /(^|[^\w-])(%[_a-zA-Z]+[_a-zA-Z0-9-]*)([^\w-]|$)/i;
5
6
// plugin
7
-module.exports = (rawopts) => {
+const postcssExtendRule = (rawopts) => {
8
// options ( onFunctionalSelector, onRecursiveExtend, onUnusedExtend)
9
const opts = Object(rawopts);
10
const extendMatch = opts.name instanceof RegExp
@@ -144,4 +144,6 @@ function getSelectorIdMatch(selectorIds, postcss) {
144
return new RegExp(`(^|[^\\w-]!.!#)(${escapedSelectorIds})([^\\w-]|$)`, '');
145
}
146
147
-module.exports.postcss = true;
+postcssExtendRule.postcss = true;
148
+
149
+export default postcssExtendRule;
0 commit comments