bem-sdk
bem-sdk copied to clipboard
Cannot reference library layer
My bemrc:
{
// ...
sets: {
desktop: '@foo-lib/common common'
}
}
not working because only set reference is supported
@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.
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",