Hi, there is a much easier way to accomplish that without resorting to external packages: Babel macros.
And you can use eslint no-restricted-import to force everyone to use the babel macro.
Change to Babel macros will cause all my jest snapshot test failed. It keeps complaining cannot compile, e.g.
TypeError: macro_1.default.li is not a function github.com/styled-components/style...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, there is a much easier way to accomplish that without resorting to external packages: Babel macros.
And you can use eslint no-restricted-import to force everyone to use the babel macro.
Change to Babel macros will cause all my jest snapshot test failed. It keeps complaining cannot compile, e.g.
TypeError: macro_1.default.li is not a function
github.com/styled-components/style...