enb / enb-bem-techs

ENB package to build BEM-projects
Other
22 stars 22 forks source link

tech: js tech: bemhtml deps bug #294

Open HDevel opened 6 years ago

HDevel commented 6 years ago

if i try to deps some elem of another block like that:

{
    tech: 'js',
    mustDeps: [
        {
            block: 'some-block',
            elem: 'some-elem',
            tech: 'bemhtml'
        }
    ]
}

in common file i see block itself and elem, but i expect to see just elem

tadatuta commented 6 years ago

https://gist.github.com/tadatuta/40a0d87c307c74c84039c34caa1c15f6

https://github.com/bem/project-stub/tree/byTech

qfox commented 6 years ago

Just to clarify some hidden things:

{
    tech: 'js',
    mustDeps: [
        {
            block: 'some-block',
            elem: 'some-elem',
            tech: 'bemhtml'
        }
    ]
}

means block-from-context.js requires some-block__some-elem.bemhtml

Both of them should be in the result but not block-from-context.bemhtml.

Probably in branch 3.0.0-0 it's fixed but it's alpha and still not tested properly.