css-blocks
css-blocks copied to clipboard
Throw a meaningful error when there's a syntax mistake in composes
Currently, composes: a-block[type=butcher] (value is not in quotes) results in an error that's not meaningful, like the following.
[css-blocks] BlockSyntaxError: No Block named "b-block" found in scope. (xxx/card.block.scss:18:3)```
We should throw an error that suggest a quoting the value instead.
Perhaps support composes: 'text-body[weight=bold][size=small]'; in addition to composes: 'text-body[weight=bold]', 'text-body[size=small]'