These are chat archives for bem/talk

5th
Sep 2014
Alexej Yaroshevich
@zxqfox
Sep 05 2014 08:32
Hey there. Can somebody clarify crashing of this test is legal? zxqfox/bem-xjst@c7aef30 How to force bem-xjst to build production code?
Sergey Berezhnoy
@veged
Sep 05 2014 13:33
options.optimize for enable/disable production or developer mode
so options.optimize === true is for production (but this is default)
about your test I can't understand the question — clarify plz ;-)
Alexej Yaroshevich
@zxqfox
Sep 05 2014 15:13
@veged Oh. Okay. Why the test is crashing? Is it right behaviour? It crashes in both modes: optimized or not.
Sergey Berezhnoy
@veged
Sep 05 2014 17:22
@zxqfox It can crash in random templates. It should not crash in case of https://github.com/bem/bem-core/blob/v2/common.blocks/i-bem/i-bem.bemhtml#L164
the problem is that tests in bem-xjst itself can't contains any basic templates (it's by design)
Alexej Yaroshevich
@zxqfox
Sep 05 2014 18:51
@veged so... if I understand the concept right then that's a problem in enb-bemxjst package