From 6d9dc0de38df70c44886794df1d6b47775226bcb Mon Sep 17 00:00:00 2001 From: c0rdyc3p5 <34134041+c0rdyc3p5@users.noreply.github.com> Date: Fri, 25 Mar 2022 02:10:48 -0400 Subject: Fix postcss 8.x compatibility (#435) Co-authored-by: XhmikosR --- postcss.js | 6 ++++-- 1 file 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; -- cgit v1.2.3