Skip to content

Commit

Permalink
Support require in bemjson (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
tadatuta authored and andrewblond committed Mar 24, 2018
1 parent 1d824a1 commit d754c3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gulp-bem-bundler-fs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module.exports = function(pattern, opts) {
const bemjson = res[1];

decl && !opts.preferBemjson && (bundle.decl = decl.map(item => item.entity));
bemjson && (bundle.bemjson = nodeEval(bemjson, bemjsonFilename));
bemjson && (bundle.bemjson = nodeEval(bemjson, path.resolve(bemjsonFilename)));
})
.then(() => output.push(new BemBundle(bundle)))
})))
Expand Down

0 comments on commit d754c3e

Please sign in to comment.