Repository navigation
Conversation
|
@sarupbanskota, thanks for your PR! By analyzing the history of the files in this pull request, we identified @loganfsmyth, @hzoo and @ChauTNguyen to be potential reviewers. |
|
At first glance it looks awesome, thanks for this PR 👍 Going to look in more detail later on. |
| "instrument": false | ||
| }, | ||
| "dependencies": { | ||
| "dag-map": "^2.0.2" |
There was a problem hiding this comment.
This would need to go into babel-core since it's being used there. The top level package.json doesn't apply to any specific package and used for devDeps
|
You can also just target my PR instead of targeting 7.0 |
|
Sure - I'll be back at this later tonight! Need to look at why the tests broke too - strange |
|
I forgot to push some code from earlier - https://github.com/babel/babel/compare/plugin-ordering...plugin-ordering-2?expand=1. It might fix some of the tests |
|
@hzoo I think you can pull this in, sounds like ncantelmi will have a PR to fix broken tests on this PR, and better dependency handling |
|
Can you look at my branch again? I removed the error check https://github.com/babel/babel/compare/plugin-ordering...plugin-ordering-2?expand=1 and the dag-map dependency is in the incorrect place |
Removing that error check hides cyclic dependencies: This is otherwise resolveable, but we have lost the metadata to properly sort In other words, you can't have multiple plugins provide the same capability. Given that, retaining the error is correct. |
| return accumulator; | ||
| }, {}); | ||
|
|
||
| plugins = sortPlugins(Object.values(uniquePlugins)); |
There was a problem hiding this comment.
Failing in less than Node 6 because of Object.values.
Codecov Report
@@ Coverage Diff @@
## plugin-ordering #5814 +/- ##
==================================================
Coverage ? 84.58%
==================================================
Files ? 282
Lines ? 9892
Branches ? 2767
==================================================
Hits ? 8367
Misses ? 1007
Partials ? 518
Continue to review full report at Codecov.
|
node_modules are required to exists so that flow can inference the types
Works towards #5623, Improving #5735
(Thanks to Nathan for providing me much needed guidance!)