Skip to content

🐜 Patch react-loadable SSR URL resolution#2418

Open
JFWooten4 wants to merge 1 commit intostellar:mainfrom
JFWooten4:2145-pt-44
Open

🐜 Patch react-loadable SSR URL resolution#2418
JFWooten4 wants to merge 1 commit intostellar:mainfrom
JFWooten4:2145-pt-44

Conversation

@JFWooten4
Copy link
Copy Markdown
Contributor

This little error popped up during my latest yarn build. Looks like the legacy Node variant didn't carry over to the v24 upgrade, so we will move on with this direct implementation. This gives us more space to implement needed linking logic; resolver warning fixed:

image

Changes

Replaces the package use of Node’s legacy url.resolve with a WHATWG URL-based resolver. The patch updates both the compiled library output and the source file included in the package.

This prevents Docusaurus builds on Node 24 from emitting the DEP0169 url.parse deprecation warning while preserving the expected public path behavior for relative paths, absolute paths, and absolute URLs.

Now that this is taken care of, I'd like to work on direct API page links for only the dev site. We can implement a post-build migrator along the lines of this PR, which inlines otherwise external links for import package managers.

Replace the package use of Node legacy url.resolve with a WHATWG URL-based resolver so Docusaurus builds on Node 24 no longer emit the DEP0169 url.parse deprecation warning. Keep relative, absolute-path, and absolute-URL publicPath behavior aligned with the legacy resolver.
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.

1 participant