Using npm:
npm install --save-dev babel-plugin-transform-module
or using yarn:
yarn add babel-plugin-transform-module --D
module.exports = {
plugins: [['transform-module', { module: 'antd' }]],
}
Transform
import { Button } from 'antd'
To
import Button from 'antd/button'