-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaking change of styles' loading order @ 0.6.0 #64
Comments
Valid issue, we will fix it |
Previous decision was wrong we actually need to extract main entity Check this issue: bem/webpack-bem-loader#64 Natural dependencies were broken
Previous decision was wrong we actually need to extract main entity Check this issue: bem/webpack-bem-loader#64 Natural dependencies were broken
@keann check |
@Yeti-or @bem/[email protected] broke everything everywhere) For example, this code /* project/blocks/Header/Header.js */
import pt from 'prop-types';
import { decl } from 'bem-react-core';
import 'm:font=roboto|ubuntu';
import 'm:row';
import 'm:size=16|20|24|28|32|40|56';
export default decl(
{
block: 'Header',
...
}
); was previously turned into and now it's where requiring of Header.js from itself results in an object: So on the 25th line above there is an error of "applyDecls is not a function", because it's, well, undefined. PS. Webpack version: 3.11.0 |
Thanks a lot for the latest fixes, with 0.6.2 I'm afraid, there is another problem now 😅 Here context of a block seems to be its folder. If we have inside this folder some related test- or preview-files, that condition also prevents from pushing a Update |
Previous decision was wrong we actually need to extract main entity Check this issue: bem/webpack-bem-loader#64 Natural dependencies were broken
Hi guys.
Let's say there is a following case:
where mod1 is pretty lightweight and widely used (e.g. some disabled state with one-two loc), thus it's just easier to include it as a base block functionality (but still keep in a separate folder for clarity). Obviously, as mod1 overrides block's base styles, its css should be loaded after the main one.
With loader version <=0.5.1 loading order of styles was predictable & ok: 0 -> 2 -> 1.
But with 0.6.0 now it is 1 -> 0 -> 2 and totally breaks existing logic, described above.
The text was updated successfully, but these errors were encountered: