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

perf(resolve): findNearestMainPackageData instead of lookupFile #12576

Merged
merged 5 commits into from
Mar 25, 2023

Conversation

patak-dev
Copy link
Member

@patak-dev patak-dev commented Mar 25, 2023

Description

Use the packageCache instead of a clean lookupFile and parse.

I think normally the first hit should return the cache we already have as most package json files have a name.


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

@stackblitz
Copy link

stackblitz bot commented Mar 25, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@patak-dev patak-dev requested a review from bluwy March 25, 2023 09:50
@patak-dev patak-dev added the performance Performance related enhancement label Mar 25, 2023
patak-dev and others added 3 commits March 25, 2023 11:40
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Copy link
Member

@bluwy bluwy left a comment

Choose a reason for hiding this comment

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

Noice!

@patak-dev patak-dev merged commit 54b376f into main Mar 25, 2023
@patak-dev patak-dev deleted the perf/find-nearest-main-package-data branch March 25, 2023 11:01
@patak-dev patak-dev mentioned this pull request Mar 26, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance related enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants