You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know it's done on purpose to use styleName over className, but i don't want to use any global classes in this project at all, so i'd like to try to use this configuration in .babelrc. however, when the mapping equals itself, it gets cleared or something.
i tried to fix it myself and from a basic test case it seems to work but it may not work with the advanced use examples this plugin supports. this can be seen in the pr
I know it's done on purpose to use
styleName
overclassName
, but i don't want to use any global classes in this project at all, so i'd like to try to use this configuration in .babelrc. however, when the mapping equals itself, it gets cleared or something.Component Code
Compiled Code
as a workaround i can name the props differently ("className": "class") and it works fine (this is compiled output of same component)
i'd like this kind of edge case to at least work, even if it's kind of a bad idea to even allow happen.
The text was updated successfully, but these errors were encountered: