Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid loading full lodash #10308

Merged
merged 6 commits into from
Jun 4, 2022
Merged

Avoid loading full lodash #10308

merged 6 commits into from
Jun 4, 2022

Conversation

rebornix
Copy link
Member

@rebornix rebornix commented Jun 3, 2022

Re #10307

image

Size reduced by 0.52 MB. We also introduced a new eslint rule to prevent this from happening in the future.

@rebornix rebornix requested a review from a team as a code owner June 3, 2022 21:11
@codecov-commenter
Copy link

codecov-commenter commented Jun 3, 2022

Codecov Report

Merging #10308 (7a8f30a) into main (453f25d) will decrease coverage by 0%.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           main   #10308   +/-   ##
=====================================
- Coverage    64%      64%   -1%     
=====================================
  Files       204      204           
  Lines      9295     9295           
  Branches   1505     1505           
=====================================
- Hits       5966     5957    -9     
- Misses     2857     2867   +10     
+ Partials    472      471    -1     
Impacted Files Coverage Δ
...rc/platform/common/dataScienceSurveyBanner.node.ts 65% <0%> (-6%) ⬇️
src/platform/common/platform/fileSystem.ts 81% <0%> (-5%) ⬇️

@rebornix rebornix mentioned this pull request Jun 3, 2022
5 tasks
@@ -265,6 +265,7 @@ module.exports = {
],
'react/jsx-uses-vars': 'error',
'react/jsx-uses-react': 'error',
'no-restricted-imports': ['error', { "paths": ["lodash"] }],
Copy link
Contributor

@DonJayamanne DonJayamanne Jun 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add rxjs as well, as thats big as well.
Never mind, that can be a separate PR

@rebornix rebornix merged commit ca8090c into main Jun 4, 2022
@rebornix rebornix deleted the rebornix/load-lodash-submodule branch June 4, 2022 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants