Aids devtools usage. Instead of just the classname "iHRorp", an element will get an additional className to identify the component name, e.g. "Header-sc-ofpjq6 iHRorp"
9 lines
320 B
JavaScript
9 lines
320 B
JavaScript
const TypescriptPluginStyledComponents = require('typescript-plugin-styled-components')
|
|
const createStyledComponentsTransformer = TypescriptPluginStyledComponents.default
|
|
const styledComponentsTransformer = createStyledComponentsTransformer()
|
|
module.exports = () => ({
|
|
before: [
|
|
styledComponentsTransformer
|
|
]
|
|
})
|