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

Upgrade to support babel-preset-es2017 and beyond

Dan503 opened this issue · comments

Babel is able to transpile code written in es2017 syntax using the babel-preset-es2017 plugin. babel-plugin-add-module-exports is only compatible with babel-preset-es2015 though.

Since this plugin is vital for modular javascript development, this forces developers into using es2015 syntax instead of being able to take advantage of the new features introduced in es2016 and es2017.

This plugin should be written in a way that is compatible with all current and future babel-preset plugins. If that is not possible, then the plugin should be updated to support the new babel-preset-es[year] plugin each time that a new one is created and released.

This would allow developers to take full advantage of any new features straight away.