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

v0.1.3 is breaking changes?

iam4x opened this issue · comments

commented

Hello,

We use this plugin in our babel preset (https://github.com/savemysmartphone/babel-preset-save), the minor update broke our builds.

I had to suffix the require() call to the plugin with .default see here: savemysmartphone/babel-preset-save@3c9d679

Is this normal behaviour? What happened? I can't find in the commit, this is just for personal knowledge. Thanks.

hmm... 0.1.3 no longer used the module.exports.
It has broken the compatibility of babel-presets.

commented

Alright, thank's. Would be great to publish a major for breaking changes like that 👍

this plugin needs to use itself :P

It is on track actually 😄 #10

this issue has been resolved in v0.1.4. thanks @iam4x 👍