-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix: use oxc-resolver hot fix for symlinks #9302
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
8 Skipped Deployments
|
@@ -147,11 +154,21 @@ impl File { | |||
Ok(self.path.to_string()) | |||
} | |||
|
|||
async fn dependencies(&self, depth: Option<usize>) -> TraceResult { | |||
async fn dependencies(&self, depth: Option<usize>, ts_config: Option<String>) -> TraceResult { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a behavior change where we now respect tsconfig
? Maybe update PR description to include functionality this gains us? (I'm curious and want to know, but can't grok it from this PR)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah tsconfig is necessary for doing prefix resolution, i.e. @/components/ui
. tsconfig loading is what's broken in oxc-resolver
I'll make a release today. |
85e18b9
to
adf8fad
Compare
- Renamed test -> test-data - Added query test - Fixed up setup_package_manager.sh to work with non-prysk tests
### Description #9302 merged a little too early, so reverting some of the changes. Namely, we don't need the `test` -> `test-data` renaming anymore ### Testing Instructions <!-- Give a quick description of steps to test your changes. -->
Description
There's a bug in oxc-resolver for symlinks that basically breaks tsconfig resolution with pnpm (in a specific scenario for extending a tsconfig that's a workspace dependency). Until that's fixed, this PR switches us to a fork that has a very dumb hot fix
We also add tsconfig loading, either via a parameter or via walking up the path hierarchy for the closest tsconfig
Testing Instructions
Added a test based off of my repro. Validated that doesn't work with main branch of oxc-resolver, but does work on my fork