typescript-plugin-styled-components
typescript-plugin-styled-components copied to clipboard
Restore componentIdPrefix fallback to getIdFromNode
As part of the changes for v2, componentId
s lost their default sc
prefix in the withConfig
call.
Is this something that can be looked into further? Without a componentIdPrefix
set, I had -15w8dc5
generated as a componentId. It then tried to use that ID as a CSS selector - CSS class names cannot start with numbers, so the rule was not applied