This was added when upgrading Babel itself to use Babel 6 in #3438. I just wrote it interally since it was temporarily (https://github.com/59naga/babel-plugin-add-module-exports) which we don't recommend doing due to later modules/cjs interop issues.
Relevant for context:
aka we have to deal with it as well
Basically revert https://github.com/babel/babel/pull/3438/commits/d6576490314b0369f68b43aaaf7b49d615108ff8 + fix tests
make test-only
or npm run test
.default
where necessary. So where it's doing some kind of require, you want to do require('a')
-> require('a').default
if the test fails.This also means the "public api" of the packages will change (one of the breaking changes) if not using modules.
Kinda hesitant to add this as beginner-friendly but should be ok.
I'll take this one
Closed via https://github.com/babel/babel/issues/5131
Most helpful comment
I'll take this one