DEV Community

Discussion on: Enabling styled-components' debugging options in your CRA app without ejecting

Collapse
 
dorshinar profile image
Dor Shinar

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.

Collapse
 
anniehuang profile image
Annie-Huang

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...