Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Update plugin key name - improved #76

Closed
wants to merge 4 commits into from

Conversation

fatfisz
Copy link

@fatfisz fatfisz commented Nov 11, 2017

This is a continuation of #75 that contains a compat change for babel-core 7.0.0-beta.3.

@fatfisz
Copy link
Author

fatfisz commented Nov 18, 2017

@tleunen Hi, do you think you'll have time to check it out this week?

@tleunen
Copy link
Owner

tleunen commented Nov 18, 2017

Yep definitely. Will do later today. I'm free this weekend :)
But it will be a bit more complicated since we'll probably need to manage both babel-* and @babel/* packages since v6 uses the first syntax and v7 the new one :/

@tleunen
Copy link
Owner

tleunen commented Nov 20, 2017

So I pushed a commit. I removed babel 6 completely and decided to set @babel/core as a direct dependency, so we can be sure to use the one we want.

@fatfisz
Copy link
Author

fatfisz commented Nov 20, 2017

Shouldn't we preserve compatibility with Babel 6? We could soft-deprecate for now and deprecate completely in the next major version.

I see that the tests are not passing, will look into that after work today.

@tleunen
Copy link
Owner

tleunen commented Nov 20, 2017

Because I moved Babel core as a direct dependency, Babel 6 is not really needed anymore.

Yep I noticed it for the tests. I must have used the wrong plugin for the spread operator. Will fix it

@tleunen
Copy link
Owner

tleunen commented Nov 21, 2017

So we cannot really use babel 7 internally because jest is still using babel 6. So when running the tests, it fails because we go from babel-core to @babel/* packages and they are not compatible.

So we can only revert everything related to babel 7 for the testing, and hope it works fine I guess :/

TypeError: Cannot read property 'useBuiltIns' of undefined
      
      at _default (node_modules/@babel/plugin-proposal-object-rest-spread/lib/index.js:13:31)
      at Function.memoisePluginContainer (node_modules/babel-core/lib/transformation/file/options/option-manager.js:113:13)
      at Function.normalisePlugin (node_modules/babel-core/lib/transformation/file/options/option-manager.js:146:32)

@fatfisz
Copy link
Author

fatfisz commented Nov 21, 2017

Oops 😛 If the internals are that incompatible, then there's nothing we can do. We can always drop the support in the next major release 🙂

@danez danez mentioned this pull request Dec 7, 2017
@tleunen
Copy link
Owner

tleunen commented Dec 7, 2017

Closing in favor of #78

@tleunen tleunen closed this Dec 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants