Open pedroteixeira opened 6 years ago
Try to move the babel-plugin-import on top of module-resolver. The order of plugins has an effect while your app is building.
I'm having annoying problems with import plugin on babel 7. It removes babel runtime polyfills from the top of the files, resulting in errors like _typeOf is not declared
. Changing the order doesn't seem to help.
Commenting out this line seems to help:
https://github.com/ant-design/babel-plugin-import/blob/master/src/Plugin.js#L118
edit:
If anyone wants to try: npm i babel-plugin-import-7
Also seeing the same behavior as @bkniffler with latest beta version of babel 7 beta-40
.
Any updates to fix this besides not removing all paths as is suggested in the babel-plugin-import-7
fork?
Hi, trying to use with "babel 7.0.0-beta.40" but plugin does not seem to work. Is there any known issues or workarounds?
Don't have a unit test, I'm testing with
antd
and can see that the transform did not work by the console message "you are using a whole package of antd" :)thanks! Pedro
.babelrc: