GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||
GeezerVison is showing github.com — Compress output for optional chain with multiple `?.` by nicolo-ribaudo · Pull Request #15740 · babel/babel Conversation
|
| Q | A |
|---|---|
| Fixed Issues? | Fixes #1, Fixes #2 |
| Patch: Bug Fix? | |
| Major: Breaking Change? | |
| Minor: New Feature? | |
| Tests Added + Pass? | Yes |
| Documentation PR Link | |
| Any Dependency Changes? | |
| License | MIT |
delete a?.b in function params #15739.a?.b?.c from a == null ? void 0 : a.b == null ? void 0 : a.b.c to a == null || a.b == null ? void 0 : a.b.c, to only emit void 0 once.delete a?.b from a == null ? true : delete a.b to a == null || delete a.b.a()?.b?.c from var _tmp1, _tmp2; (_tmp1 == a()) == null || (_tmp2 = _tmp1.b) == null ? void 0 : _tmp2.c to var _tmp1; (_tmp1 == a()) == null || (_tmp1 = _tmp1.b) == null ? void 0 : _tmp1.c.Terser doesn't do these optimization by itself, so this change also brings improvements to minified code.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/54764/ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
6324cbb to
117cab1
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The output is much better, thank you!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
117cab1 to
f4bf0ba
Compare
|
@SimenB Multiple PRs are failing with this (flaky) failure, but I fail to see how it can be Babel-related. However, it only fails for our "breaking" tests and not for the Babel 7 tests. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Hmmm, no. The test uses I can update the test to use 2 times it fails to delete a file since it's not there, and once it fails to launch node since the file isn't there. Seems a bit odd... 😅 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thank you! I can test that PR in our CI to see if it makes the problem go away. Is it possible that those failure are just hiding a real error? They started happening in #15736 🤔 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
That'd be great 👍
That's what I was thinking |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.