[fix] Avoid using Object.values

Not everyone is polyfilling older environments

Fix #1334
This commit is contained in:
Nicolas Gallagher
2019-05-15 11:22:02 -07:00
parent 2ce434e8f8
commit e9f68e380b
@@ -66,7 +66,8 @@ export default function createStyleResolver() {
if (!inserted[dir][id]) {
const style = createCompileableStyle(i18nStyle(flattenStyle(id)));
const results = atomic(style);
Object.values(results).forEach(({ identifier, property, rules, value }) => {
Object.keys(results).forEach(key => {
const { identifier, property, rules, value } = results[key];
addToLookup(identifier, property, value);
rules.forEach(rule => {
const group = STYLE_GROUPS.custom[property] || STYLE_GROUPS.atomic;