diff options
author | c0rdyc3p5 <34134041+c0rdyc3p5@users.noreply.github.com> | 2022-03-25 09:10:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-25 09:10:48 +0300 |
commit | 6d9dc0de38df70c44886794df1d6b47775226bcb (patch) | |
tree | 4a4aa6969a9e1d2a2d1bc9d5eb75d91abe2b35b0 | |
parent | ce4257c3897faeaae40872f0b96dc7ed2254ac2b (diff) |
Fix postcss 8.x compatibility (#435)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
-rw-r--r-- | postcss.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |