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

Named imports cause an incorrect path #282

Open
onlyann opened this issue Oct 31, 2018 · 2 comments
Open

Named imports cause an incorrect path #282

onlyann opened this issue Oct 31, 2018 · 2 comments

Comments

@onlyann
Copy link

onlyann commented Oct 31, 2018

import { Layout as AntdLayout} from "antd"

This results in antd/lib/antd-layout instead of antd/lib/layout.

This issue was resolved as part of #196 but the fix is gone on version 1.11.0.

Happy to create a PR to reapply the change if that is everything that is required.

@onlyann onlyann changed the title Named imports cause an incorrect path` Named imports cause an incorrect path Oct 31, 2018
@viruscamp
Copy link

广告:
https://github.com/viruscamp/babel-plugin-transform-imports 实现了 babel-plugin-import 所有功能, 没有这个 bug.

Ad:
https://github.com/viruscamp/babel-plugin-transform-imports has all the features of babel-plugin-import without this bug.

yesmeck added a commit that referenced this issue Nov 4, 2020
Close

- #245
- #420
- #423
- #344
- #342
- #432
- #436
- #331
- #324
- #311
- #297
- #296
- #286
- #282
- #280
- #239
- #172
@yesmeck yesmeck mentioned this issue Nov 4, 2020
yesmeck added a commit that referenced this issue Nov 4, 2020
Close

- #245
- #420
- #423
- #344
- #342
- #432
- #436
- #331
- #324
- #311
- #297
- #296
- #286
- #282
- #280
- #239
- #172
@csvan
Copy link

csvan commented Aug 30, 2022

Seeing the same thing, was this ever resolved? Named exports currently break transpilation of MUI

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

No branches or pull requests

3 participants