Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/rfs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorc0rdyc3p5 <34134041+c0rdyc3p5@users.noreply.github.com>2022-03-25 09:10:48 +0300
committerGitHub <noreply@github.com>2022-03-25 09:10:48 +0300
commit6d9dc0de38df70c44886794df1d6b47775226bcb (patch)
tree4a4aa6969a9e1d2a2d1bc9d5eb75d91abe2b35b0
parentce4257c3897faeaae40872f0b96dc7ed2254ac2b (diff)
Fix postcss 8.x compatibility (#435)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
-rw-r--r--postcss.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/postcss.js b/postcss.js
index 9e45a5e..28e9bc7 100644
--- a/postcss.js
+++ b/postcss.js
@@ -14,7 +14,7 @@ const RfsClass = require('./lib/rfs.js');
const DISABLE_RFS_SELECTOR = '.disable-rfs';
const ENABLE_RFS_SELECTOR = '.enable-rfs';
-module.exports = postcss.plugin('postcss-rfs', opts => {
+module.exports = (opts = {}) => {
const rfs = new RfsClass(opts);
// Get the options merged with defaults
@@ -148,4 +148,6 @@ module.exports = postcss.plugin('postcss-rfs', opts => {
}
});
};
-});
+};
+
+module.exports.postcss = true;