Open Yeti-or opened 7 years ago
https://runkit.com/581a9fba871f320014cdcdf7/58ae28aaef3db200148290ed
var bemjsonToDecl = require("bemjson-to-decl"); JSON.stringify(bemjsonToDecl.convert({ block: 'popup', mods: { theme: ['normal', 'action'] } }), null, 4); [ { "block": "popup" }, { "block": "popup", "modName": "theme", "modVal": "normal" }, { "block": "popup", "modName": "theme", "modVal": true }, { "block": "popup", "modName": "theme", "modVal": "action" } ]
I think this issue is related to https://github.com/bem-sdk/bemjson-to-decl/issues/13
Yeah, it's a pure duplicate.
Oh, wait, it's impossible.
https://runkit.com/581a9fba871f320014cdcdf7/58ae28aaef3db200148290ed