Skip to content
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

Failed cases #146

Open
xc2 opened this issue Jul 6, 2017 · 1 comment
Open

Failed cases #146

xc2 opened this issue Jul 6, 2017 · 1 comment
Labels

Comments

@xc2
Copy link

xc2 commented Jul 6, 2017

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);

code:

import { DatePicker } from 'antd';
export {
  DatePicker
}

expected:

import _default from 'antd/lib/date-picker';
export {
  _default as DatePicker
}

but got:

export { DatePicker };

code:

export { DatePicker } from 'antd';

expected:

export _default as DatePicker from 'antd/lib/date-picker';

but got:

export { DatePicker } from 'antd';

env:

  • babel: 6.24.1
  • babel-core 6.25.0
  • babel-preset-es2015 6.24.1
  • With command ./node_modules/.bin/babel test.js
  • With .babelrc:
{
  "presets": [
    [
      "es2015",
      {
        "modules": false
      }
    ]
  ],
  "plugins": [
    [
      "import",
      [
        {
          "libraryName": "antd",
          "libraryDirectory": "lib",
          "style": false
        }
      ]
    ]
  ]
}
@xc2 xc2 changed the title Additional conditions which all fail Fail cases Jul 7, 2017
@xc2 xc2 changed the title Fail cases Failed cases Jul 7, 2017
@paranoidjk
Copy link
Contributor

@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.

@paranoidjk paranoidjk added the bug label Jul 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants