bem-sdk icon indicating copy to clipboard operation
bem-sdk copied to clipboard

Cannot reference library layer

Open Vittly opened this issue 7 years ago • 2 comments

My bemrc:

{
    // ...
    sets: {
        desktop: '@foo-lib/common common'
    }
}

not working because only set reference is supported

Vittly avatar Jan 06 '18 09:01 Vittly

@Vittly Ouh. As far as I remember we did it on purpose because we decided that user should reveive a complete set of levels which represents a complete code. But when you asking for a layer you'll get just a part of code and in most cases you'll broke the order between sets.

The main idea was to publish only complete sets or layers instead of partial.

@tadatuta Correct me please if I'm wrong.

qfox avatar Feb 01 '18 23:02 qfox

I agree referencing specific layer is kind of hack. Lets close it and fix README.md:

// Will use touch-phone set from bem-components and few local levels "touch-phone": "@bem-components/touch-phone common touch touch-phone",

Vittly avatar Feb 04 '18 18:02 Vittly