Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to upgrade to Babel 7 #488

Merged
merged 2 commits into from
Feb 26, 2019
Merged

Attempt to upgrade to Babel 7 #488

merged 2 commits into from
Feb 26, 2019

Conversation

toolness
Copy link
Collaborator

@toolness toolness commented Feb 26, 2019

It seems like a new version of Babel was released in August 2018 and it is what all the latest versions of our tools are going to need, so we might as well upgrade it now.

What actually spurred this change was looking at lingui for #12; it requires that we use Babel to convert JSX syntax into JS, rather than relying on TypeScript to do that for us, and Babel 6's JSX transformer doesn't support the new React fragment syntax that we've been using. So this PR will allow me to experiment with integrating lingui into the project, but it's a good thing to do regardless.

To do

  • All the tests pass and everything compiles, but I should actually kick the tires a bit to make sure everything works, especially on IE11.

/**
* This is an API for a mock window.fetch, which provides
* some convenience methods for network communications.
*/
interface MockFetch extends jest.MockInstance<FetchAPI> {
interface MockFetch extends jest.MockInstance<any, any> {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really understand what's going on with the typing of jest.MockInstance but it's just for tests so I don't care too much. 🤷‍♂️

package.json Outdated
"@types/webpack": "4.4.17",
"@types/webpack-bundle-analyzer": "2.13.0",
"@types/webpack-node-externals": "1.6.3",
"apollo": "2.1.8",
"apollo": "^2.5.1",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to upgrade this because I was running into apollographql/apollo-tooling#962.

@toolness toolness merged commit d1a65db into master Feb 26, 2019
@toolness toolness deleted the babel-7 branch February 26, 2019 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant