Skip to content

Babel plugin styled components

гλ requested to merge babel-plugin-styled-components into master

This small fix makes styled-components easier to work with and prevents the temptation to rely on poor practices such as using brittle classnames to reference components it provides descriptive classnames for styled components in the DOM and makes them more visible in the React Devtools whilst allowing for minimisation in production.

Note: @luxtardev this changes our webpack config.

Before

image

image

After

image

image

Edited by гλ

Merge request reports

Loading