Here is how things would work if this were its own package. #85
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
On my machine (with all of Nuclide installed), here is what timecop looks like before this change:
And here is what timecop looks like after this change:
There is a dramatic difference in load time if this could be split out into a package that were only the grammar.
Without even testing, I'm 99% sure the reason why
line-ending-selector
is in that list is because of this line:https://github.com/atom/line-ending-selector/blob/54c23121ae8ba18ba3992a4ccceda44b750b6fe8/lib/main.js#L3
In Nuclide, you can see that we don't allow any of our packages to depend on
lodash
,q
, orunderscore
because we have found that they have a serious negative effect on load times:https://github.com/facebook/nuclide/blob/e961c4d3461c3abc35a6f8ccaf3f6e959b622f1e/scripts/lib/package_linter.py#L21-L27