Skip to content

fix(deps): replace very unmaintained resolve with oxc-resolver#6955

Draft
serhalp wants to merge 2 commits intomainfrom
fix/6697
Draft

fix(deps): replace very unmaintained resolve with oxc-resolver#6955
serhalp wants to merge 2 commits intomainfrom
fix/6697

Conversation

@serhalp
Copy link
Member

@serhalp serhalp commented Feb 25, 2026

Summary

The resolve package is unmaintained. This replaces it with oxc-resolver, a modern, actively maintained, very fast Rust-based resolver from the oxc project, powering Rolldown and Vite.

  • @netlify/build: Use oxc-resolver and convert the file to .ts while I'm here
  • @netlify/zip-it-and-ship-it: Use oxc-resolver with symlinks: false to preserve symlink paths, as previously.
  • Remove weird fallback to require.resolve() on failures, as oxc-resolver provides good error messages

Note

I created this commit a month ago and forgot about it. I don't remember the status of this 😆. I'm opening this PR to not lose it again.

The `resolve` package is unmaintained. This replaces it with `oxc-resolver`, a modern, actively
maintained, very fast Rust-based resolver from the oxc project, powering Rolldown and Vite.

- `@netlify/build`: Use oxc-resolver and convert the file `.ts` while I'm here
- `@netlify/zip-it-and-ship-it`: Use oxc-resolver with `symlinks: false` to preserve symlink paths,
  as previously.
- Remove weird fallback to `require.resolve()` on failures, as oxc-resolver provides good error messages

Fixes #6697.
@coderabbitai
Copy link

coderabbitai bot commented Feb 25, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/6697

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@benmccann
Copy link
Contributor

Awesome! If this doesn't work out for any reason, several alternatives listed here: es-tooling/module-replacements#340

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.

2 participants