Skip to content

Commit f550d4b

Browse files
committed
Feature name is rem, not pixrem
Ref MoOx#264
1 parent 7592e26 commit f550d4b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@ const plugin = postcss.plugin("postcss-cssnext", (options) => {
1515
const features = options.features
1616

1717
// propagate browsers option to plugins that supports it
18-
"autoprefixer pixrem".split(/\s/).forEach(name => {
18+
const pluginsToPropagateBrowserOption = [ "autoprefixer", "rem" ]
19+
pluginsToPropagateBrowserOption.forEach((name) => {
1920
const feature = features[name]
2021

2122
if (feature !== false) {
2223
features[name] = {
2324
browsers: (
2425
feature && feature.browsers
25-
? feature.browsers
26-
: options.browsers
26+
? feature.browsers
27+
: options.browsers
2728
),
2829
...(feature || {}),
2930
}

0 commit comments

Comments
 (0)