We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7592e26 commit f550d4bCopy full SHA for f550d4b
src/index.js
@@ -15,15 +15,16 @@ const plugin = postcss.plugin("postcss-cssnext", (options) => {
15
const features = options.features
16
17
// propagate browsers option to plugins that supports it
18
- "autoprefixer pixrem".split(/\s/).forEach(name => {
+ const pluginsToPropagateBrowserOption = [ "autoprefixer", "rem" ]
19
+ pluginsToPropagateBrowserOption.forEach((name) => {
20
const feature = features[name]
21
22
if (feature !== false) {
23
features[name] = {
24
browsers: (
25
feature && feature.browsers
- ? feature.browsers
26
- : options.browsers
+ ? feature.browsers
27
+ : options.browsers
28
),
29
...(feature || {}),
30
}
0 commit comments