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

Upgrade Babel to 7.0.0-beta.56 #216

Closed
wants to merge 5 commits into from
Closed

Conversation

LinusU
Copy link
Contributor

@LinusU LinusU commented Aug 8, 2018

Summary

This pull request bumps Babel to 7.0.0-beta.56 to incorporate the latest bugfixes from Babel.

Test plan

One way to test is to add a simple TypeScript file with a type as the default export:

export const test = 1
export default interface A {}

and then import that file from any other file:

import { test } from './typescript-test'

Before this would throw an error, but with the latest Babel this is now fixed.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 8, 2018
@codecov-io
Copy link

codecov-io commented Aug 8, 2018

Codecov Report

Merging #216 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #216   +/-   ##
=======================================
  Coverage   85.37%   85.37%           
=======================================
  Files         134      134           
  Lines        4389     4389           
  Branches      681      681           
=======================================
  Hits         3747     3747           
  Misses        571      571           
  Partials       71       71
Impacted Files Coverage Δ
packages/metro/src/reactNativeTransformer.js 76.78% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a802976...1ae1126. Read the comment docs.

@rafeca
Copy link
Contributor

rafeca commented Aug 8, 2018

Cool! Thanks for the contribution!

Can you add the import { test } from './typescript-test' statement to the TypeScript.ts test file that you created in your previous PR? I've checked and this makes the test fail in current master 👍

Also, I'm going to let @pvdz take a look at this one, since he's the Babel guy in Metro 😄

@LinusU
Copy link
Contributor Author

LinusU commented Aug 8, 2018

Can you add the ...

Good thinking 👍

I added a default interface export to the file, and verified that it indeed doesn't work on current master.

@rafeca
Copy link
Contributor

rafeca commented Aug 8, 2018

Thanks! I've just talked to @pvdz and upgrading babel for us internally can potentially be complex (depending on whether there are some subtle breaking changes between beta54 and beta56 that forces us to update some of our internal babel plugins...).

I'm going to import this PR and check if it causes any internal issues and report back

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

rafeca has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@LinusU
Copy link
Contributor Author

LinusU commented Aug 9, 2018

@rafeca any news? ☺️

If there were problems, anything I can do to help? I think that the largest changes are around the runtime helper loader. It's important that all usages of that module use at least beta.56 as well, as can be seen in this commit: 2fb46bd

@rafeca
Copy link
Contributor

rafeca commented Aug 9, 2018

We’ve found some changes in the generated sourcemaps (caused by babel/babel#8380). The changes seem to be good but we’ve needed some time to verify things. I expect to be able to merge this soon 😃

@rafeca
Copy link
Contributor

rafeca commented Aug 10, 2018

giphy

facebook-github-bot pushed a commit that referenced this pull request Aug 10, 2018
Summary:
**Summary**

This pull request bumps Babel to 7.0.0-beta.56 to incorporate the latest bugfixes from Babel.

**Test plan**

One way to test is to add a simple TypeScript file with a type as the default export:

```typescript
export const test = 1
export default interface A {}
```

and then import that file from any other file:

```js
import { test } from './typescript-test'
```

Before this would throw an error, but with the latest Babel this is now fixed.
Pull Request resolved: #216

Reviewed By: mjesun

Differential Revision: D9216331

Pulled By: rafeca

fbshipit-source-id: a48e87c3c6b2902be410395b1b4afab63cb88fec
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Aug 10, 2018
Summary:
**Summary**

This pull request bumps Babel to 7.0.0-beta.56 to incorporate the latest bugfixes from Babel.

**Test plan**

One way to test is to add a simple TypeScript file with a type as the default export:

```typescript
export const test = 1
export default interface A {}
```

and then import that file from any other file:

```js
import { test } from './typescript-test'
```

Before this would throw an error, but with the latest Babel this is now fixed.
Pull Request resolved: facebook/metro#216

Reviewed By: mjesun

Differential Revision: D9216331

Pulled By: rafeca

fbshipit-source-id: a48e87c3c6b2902be410395b1b4afab63cb88fec
@LinusU
Copy link
Contributor Author

LinusU commented Aug 10, 2018

Thanks for landing this! ❤️

@LinusU LinusU deleted the babel-beta-56 branch August 10, 2018 10:20
@dulmandakh
Copy link

@LinusU today they released v7.0.0-rc.1 😄

@LinusU
Copy link
Contributor Author

LinusU commented Aug 10, 2018

Haha, yeah I just saw that 😄

kelset pushed a commit to facebook/react-native that referenced this pull request Aug 13, 2018
Summary:
**Summary**

This pull request bumps Babel to 7.0.0-beta.56 to incorporate the latest bugfixes from Babel.

**Test plan**

One way to test is to add a simple TypeScript file with a type as the default export:

```typescript
export const test = 1
export default interface A {}
```

and then import that file from any other file:

```js
import { test } from './typescript-test'
```

Before this would throw an error, but with the latest Babel this is now fixed.
Pull Request resolved: facebook/metro#216

Reviewed By: mjesun

Differential Revision: D9216331

Pulled By: rafeca

fbshipit-source-id: a48e87c3c6b2902be410395b1b4afab63cb88fec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants