From 7638990ed5e32c1242508612a8553b9fca125fe0 Mon Sep 17 00:00:00 2001 From: Anton Krichevskii Date: Thu, 24 Nov 2016 14:08:19 +0300 Subject: [PATCH] Quick-fix for universal format --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d3b81d9..f223afc 100644 --- a/index.js +++ b/index.js @@ -66,7 +66,7 @@ module.exports = function(pattern, opts) { const decl = res[0]; const bemjson = res[1]; - decl && !opts.preferBemjson && (bundle.decl = decl); + decl && !opts.preferBemjson && (bundle.decl = decl.map(item => item.entity)); bemjson && (bundle.bemjson = nodeEval(bemjson, bemjsonFilename)); }) .then(() => output.push(new BemBundle(bundle)))