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

[workspace-resolve-plugin] Create plugin for more efficient resolution when repo structure is known #4880

Merged
merged 5 commits into from
Aug 15, 2024

Conversation

dmichon-msft
Copy link
Contributor

Summary

Defines a webpack plugin that accelerates module resolution in webpack by leveraging the known installation layout of a monorepo.

This plugin is not a standalone and depends on external tooling that talks to the package manager of choice to generate the necessary cache file.

Details

Plugin improves resolver performance by assuming that the following data are immutable during a build and can be efficiently precalculated using data from the package manager:

  • The locations of all package.json files in the repo and its installed dependencies, including any used to configure subfolders
  • The dependencies available in all packages, both local and external

How it was tested

Unit tests for the algorithm.

Impacted documentation

Only its own.

@dmichon-msft dmichon-msft merged commit 0295c11 into microsoft:main Aug 15, 2024
5 checks passed
@dmichon-msft dmichon-msft deleted the workspace-resolve-plugin branch August 15, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

2 participants