tleunen / eslint-import-resolver-babel-module

Custom eslint resolve for babel-plugin-module-resolver
https://github.com/tleunen/babel-plugin-module-resolver
MIT License
248 stars 31 forks source link

Support latest babel 7 only #78

Closed danez closed 6 years ago

danez commented 6 years ago

This drops babel 6 as babel 7 now has also different package names which makes it rather complicated to support both.

This fixes several issues:

This is basically the same as #76 with fixed tests.

tleunen commented 6 years ago

What do you suggest here? Moving @babel/core from peerDep to dep? Or releasing a new major version?

Since it's still a beta, most users are probably still using babel 6 and I'm guessing this might create more issues for them?

Otherwise, I'm all good for this PR, thank you.

danez commented 6 years ago

I'm not sure. I think I would release 4.0 soon-ish, as it is needed for the babel plugin 3.x?

To not break more users i think 4.0 should be released as is. Or with babel 7 removed as it is only working with some older babel 7 version anyway. If not removed I would only fix the key check for babel 7, as it is obviously wrong now that the babel plugin sets its name here.

But I guess I would prefer releasing 4.0 without babel 7 and then do 5.x-beta for babel 7.

Complete other solution would be to support both, same as jest. But then users of babel 7 have to install @babel/core@7 and babel-core@7.0.0-bridge.0. see https://facebook.github.io/jest/docs/en/getting-started.html#using-babel

tleunen commented 6 years ago

Yes good idea. I'll release v4 with Babel 6, then v5 with Babel 7.

Forcing the users to install 7 and the babel-core bridge is not a viable solution imo. It's a bit an ugly hack :/

(I'll actually finally try to setup these 2 packages with lerna and keep the versions synchronized to make it easier for all users)