Skip to content

feat: add config antd disableBabelPluginImport:false #752

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

banchichen
Copy link
Contributor

@banchichen banchichen commented Nov 23, 2021

我们最近在做主题功能,看到了antd已经支持了动态主题:https://ant.design/docs/react/customize-theme-variable-cn
但是如文档所说,需要去除 babel-plugin-import,否则打包后由于css顺序问题,variable的css可能被覆盖导致主题不生效

故希望新增一个disableBabelPluginImport配置项,主动设置为true时,不对antd使用babel-plugin-import,来使用antd的动态主题功能

@banchichen banchichen changed the title feat: add config antd pc:false feat: add config antd BabelPluginImport:false Nov 23, 2021
@banchichen banchichen changed the title feat: add config antd BabelPluginImport:false feat: add config antd disableBabelPluginImport:false Nov 23, 2021
@chenshuai2144 chenshuai2144 merged commit 9d4190b into umijs:master Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants