Skip to content

Conversation

mofeiZ
Copy link
Contributor

@mofeiZ mofeiZ commented Jul 15, 2024

Stack from ghstack (oldest at bottom):


The current version of @babel/generator used by playground has some bugs (see babel/babel#10966)

// Try pasting this into playground
function useFoo(a, b) {
  return (a ?? b) == c;
}

// Current playground output
function useFoo(a, b) {
  return a ?? b == c;
}

We previously locked babel library versions to be compatible with the oldest Meta internal usages. Now that both compiler and eslint plugins are bundled with rollup, this shouldn't be necessary.

Copy link

vercel bot commented Jul 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 15, 2024 9:48pm

…und"

---
The current version of `babel/generator` used by playground has some bugs (see babel/babel#10966)
```js
// Try pasting this into playground
function useFoo(a, b) {
  return (a ?? b) == c;
}

// Current playground output
function useFoo(a, b) {
  return a ?? b == c;
}
```

We previously locked babel library versions to be compatible with the oldest Meta internal usages. Now that both compiler and eslint plugins are bundled with rollup, this shouldn't be necessary.

[ghstack-poisoned]
@mofeiZ mofeiZ merged commit 06517f5 into gh/mofeiZ/12/base Jul 15, 2024
mofeiZ added a commit that referenced this pull request Jul 15, 2024
---
The current version of `@babel/generator` used by playground has some bugs (see babel/babel#10966)
```js
// Try pasting this into playground
function useFoo(a, b) {
  return (a ?? b) == c;
}

// Current playground output
function useFoo(a, b) {
  return a ?? b == c;
}
```

We previously locked babel library versions to be compatible with the oldest Meta internal usages. Now that both compiler and eslint plugins are bundled with rollup, this shouldn't be necessary.

ghstack-source-id: fa20d67
Pull Request resolved: #30341
@mofeiZ mofeiZ deleted the gh/mofeiZ/12/head branch July 15, 2024 21:56
felixshiftellecon added a commit to felixshiftellecon/react that referenced this pull request Jul 24, 2024
---
The current version of `@babel/generator` used by playground has some bugs (see babel/babel#10966)
```js
// Try pasting this into playground
function useFoo(a, b) {
  return (a ?? b) == c;
}

// Current playground output
function useFoo(a, b) {
  return a ?? b == c;
}
```

We previously locked babel library versions to be compatible with the oldest Meta internal usages. Now that both compiler and eslint plugins are bundled with rollup, this shouldn't be necessary.

ghstack-source-id: fa20d67
Pull Request resolved: facebook#30341
felixshiftellecon added a commit to felixshiftellecon/react that referenced this pull request Jul 24, 2024
---
The current version of `@babel/generator` used by playground has some bugs (see babel/babel#10966)
```js
// Try pasting this into playground
function useFoo(a, b) {
  return (a ?? b) == c;
}

// Current playground output
function useFoo(a, b) {
  return a ?? b == c;
}
```

We previously locked babel library versions to be compatible with the oldest Meta internal usages. Now that both compiler and eslint plugins are bundled with rollup, this shouldn't be necessary.

ghstack-source-id: fa20d67
Pull Request resolved: facebook#30341
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants