Files
brave-core/components/webpack/webpack-ts-transformers.js
T
Pete Miller 643e564a25 Friendly class names for styled-components Elements in non-official builds
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"
2019-12-03 10:06:51 -08:00

9 lines
320 B
JavaScript

const TypescriptPluginStyledComponents = require('typescript-plugin-styled-components')
const createStyledComponentsTransformer = TypescriptPluginStyledComponents.default
const styledComponentsTransformer = createStyledComponentsTransformer()
module.exports = () => ({
before: [
styledComponentsTransformer
]
})