We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
code:
import { DatePicker } from 'antd'; console.log([ DatePicker ], DatePicker);
expected:
import _default from 'antd/lib/date-picker'; console.log([_default], _default);
but got:
import _default from 'antd/lib/date-picker'; console.log([DatePicker], _default);
import { DatePicker } from 'antd'; export { DatePicker }
import _default from 'antd/lib/date-picker'; export { _default as DatePicker }
export { DatePicker };
export { DatePicker } from 'antd';
export _default as DatePicker from 'antd/lib/date-picker';
env:
./node_modules/.bin/babel test.js
.babelrc
{ "presets": [ [ "es2015", { "modules": false } ] ], "plugins": [ [ "import", [ { "libraryName": "antd", "libraryDirectory": "lib", "style": false } ] ] ] }
The text was updated successfully, but these errors were encountered:
@xc2 Could you test with https://github.com/ant-design/babel-plugin-import/releases/tag/1.3.0, and tell me how many case are still fail? Thx.
Sorry, something went wrong.
No branches or pull requests
code:
expected:
but got:
code:
expected:
but got:
code:
expected:
but got:
env:
./node_modules/.bin/babel test.js
.babelrc
:The text was updated successfully, but these errors were encountered: