babel-plugin-import icon indicating copy to clipboard operation
babel-plugin-import copied to clipboard

Named imports cause an incorrect path

Open onlyann opened this issue 6 years ago • 2 comments

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 avatar Oct 31 '18 22:10 onlyann

广告:
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.

viruscamp avatar Feb 03 '19 16:02 viruscamp

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

csvan avatar Aug 30 '22 17:08 csvan