diff --git a/lib/getWebpackConfig.js b/lib/getWebpackConfig.js index 7ba86c700..3346006ab 100644 --- a/lib/getWebpackConfig.js +++ b/lib/getWebpackConfig.js @@ -41,7 +41,7 @@ function getWebpackConfig(modules) { ]); // Other package - if (pkg.name !== 'antd') { + if (pkg.name !== 'antd' && pkg.name !== '@ant-design/x') { babelConfig.plugins.push([ resolve('babel-plugin-import'), {