-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
turbopack-cli: Use correct fs and env for builds
This fixes two issues with resolving for turbopack-cli in builds: - Builds used the `output_fs` in the `ResolveOptionsContext` resolve origin, so node_modules were never found as the lookup path could never be in the same filesystem as the root path [0]. It now uses `project_fs`. - Production used the `development` custom condition. It’s now `production` and `browser` is added by default. [0] https://github.com/vercel/next.js/blob/8756f7a65bd9922b3bb90050ee225c8bcdf6a535/turbopack/crates/turbopack-core/src/resolve/mod.rs#L1302
- Loading branch information
1 parent
aebdc63
commit 2686fcc
Showing
3 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters