Skip to content

fix(core)!: apply URL parser mode to third-party packages - #1831

Draft
elecmonkey wants to merge 2 commits into
mainfrom
elecmonkey/fix-new-url-parser-scope
Draft

fix(core)!: apply URL parser mode to third-party packages#1831
elecmonkey wants to merge 2 commits into
mainfrom
elecmonkey/fix-new-url-parser-scope

Conversation

@elecmonkey

Copy link
Copy Markdown
Member

Summary

The URL parser mode is set on Rsbuild's built-in JavaScript rule, which does not match node_modules. A new URL() reference in a bundled third-party package thus falls back to Rspack's default handling, which resolves it through the module registry and injects the automatic public path runtime.

Apply the same mode to third-party packages — new-url-relative for ESM, disabled for CJS — so their references become static relative URLs with no runtime.

Copilot AI lite review requested due to automatic review settings August 6, 2026 18:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@elecmonkey

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 9a168507f8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@elecmonkey
elecmonkey marked this pull request as draft August 6, 2026 19:23
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