Open HAjiMa666 opened 1 year ago
由于缺乏足够的信息,我们暂时关闭了该 Issue。请修改(不要回复) Issue 提供最小重现以重新开启。谢谢。
在没有修复之前,可以用以下方法解决:
- extraBabelPlugins: [
- ['babel-plugin-styled-components', { displayName: true }]
- ],
+ styledComponents: {
+ babelPlugin: {
+ topLevelImportPaths: ['umi']
+ }
+ },
在没有修复之前,可以用以下方法解决:
- extraBabelPlugins: [ - ['babel-plugin-styled-components', { displayName: true }] - ], + styledComponents: { + babelPlugin: { + topLevelImportPaths: ['umi'] + } + },
好滴好滴 谢谢大佬.我去试试
我看styled-components中, 使用这个babel-plugin-styled-components 插件后,可以进行更好的调试,可以在源码和调试工具中显示出组件的名字,但是我加上之后,并没有生效 插件功能介绍: https://styled-components.com/docs/tooling#babel-plugin
umi的配置文件
我所使用的
麻烦各位大佬看下