Closed zefirka closed 8 years ago
@zefirka the question is closed?
@miripiruni Pretty much. Thanks! It work. But when I use module names like:
requires: {
'module-name': { ... }
}
In final bundle in object which describes requirements I have:
{
module-name: require('<path to module>')
}
@zefirka Thank you. Closing this since it's a bug in enb-bemxjst module: https://github.com/enb/enb-bemxjst/issues/170
I have some requires of CommonJS modules in my bemhtml templates. Like a:
I'm building my templates with
enb-bemxjst
and at the end I will get?.bemhtml.js
bundle. There are requires frombem-xjst
in code:Also I have requires from my templates in this bundle. But when I try to resolve requires in my bemhtml templates with browserify - I can't do it cause of browserify can't resolve requires from bem-xjst code. Has anybody solved this problem?
Currently, in my
enb
technology I'm parsing bundle file, replacing all bem-xjst requirements with some strings, after I build an next bundle and replace in final bundle that strings with initial bem-xjst requires. It's pretty weird and absolutely non-maintainable solution, but currently it works.