59naga / babel-plugin-add-module-exports

【v0.2 no longer maintained】 Fix babel/babel#2212 - Follow the babel@5 behavior for babel@6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add module.exports = module['default'] in module unexpectedly

Peiren opened this issue · comments

As I know, this plugin come into play when there is only one 'export default' declaration in a module.
But module with content as below affected by this plugin unexpectedly:
import xxx from 'xxx';
export * from 'xxx';
export default xxx;