Conversation
We want to inline them using a babel plugin
|
This fails locally for some reason. |
| /* $FlowFixMe */ | ||
| return require(binPath); | ||
| } else { | ||
| // TODO: Because of a dependency cycle, this can only be inlined once the babel plugin for inlining is merged |
There was a problem hiding this comment.
This should almost be considered a bug, IMO
| const resolver = options.resolver | ||
| /* $FlowFixMe */ | ||
| ? require(options.resolver) | ||
| ? /* $FlowFixMe */ |
There was a problem hiding this comment.
I'm curious, is this a regression from before?
It indeed looked better before.
There was a problem hiding this comment.
No, it was in a single line before, it was multilined when I made it into a ternary
There was a problem hiding this comment.
Could you open an issue against prettier? We may be able to print it the way you want, we're already doing that for flow unions.
Codecov Report
@@ Coverage Diff @@
## master #3780 +/- ##
==========================================
- Coverage 58.09% 58.02% -0.08%
==========================================
Files 191 191
Lines 6708 6711 +3
Branches 6 6
==========================================
- Hits 3897 3894 -3
- Misses 2808 2814 +6
Partials 3 3
Continue to review full report at Codecov.
|
* Lift all inline requires to the top-level We want to inline them using a babel plugin * Remove one inlining that messes us up * Inline two more requires causing the repl test to fail * remove one unnecessary inline * Fix prettier lint * really prettier?
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Move a lot of the changes in #3493 to isolate the changes causing errors.
Test plan
Tests should pass