bem-sdk-archive / bemjson-to-decl

BEMJSON to BEMDECL converter. DEPRECATED →
https://github.com/bem/bem-sdk/tree/master/packages/bemjson-to-decl
Other
2 stars 2 forks source link

Mix changes context of children elems #14

Closed tadatuta closed 7 years ago

tadatuta commented 7 years ago
require('bemjson-to-decl').convert({ block: 'b1', mix: { block: 'b2' }, content: { elem: 'e1' } }) // [ { block: 'b1' }, { block: 'b2' }, { block: 'b2', elem: 'e1' } ]

but

require('bemjson-to-decl').convert({ block: 'b1', mix: { block: 'b2' }, content: { elem: 'e1' } }) // [ { block: 'b1' }, { block: 'b2' }, { block: 'b1', elem: 'e1' } ]

expected.