Skip to content

Commit 4967fa9

Browse files
committed
Spread browser options to pixrem
1 parent 1a62f04 commit 4967fa9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ const plugin = postcss.plugin("postcss-cssnext", (options) => {
3131
}
3232
}
3333

34+
// propagate browsers option to pixrem
35+
if (features.pixrem !== false) {
36+
features.pixrem = {
37+
browsers: (
38+
features.pixrem && features.pixrem.browsers
39+
? features.pixrem.browsers
40+
: options.browsers
41+
),
42+
...(features.pixrem || {}),
43+
}
44+
}
45+
3446
const processor = postcss()
3547

3648
// features

0 commit comments

Comments
 (0)