Skip to content

Replace join-path dependency with native node:path#525

Open
Frank3K wants to merge 1 commit intofirebase:masterfrom
Frank3K:remove-join-path
Open

Replace join-path dependency with native node:path#525
Frank3K wants to merge 1 commit intofirebase:masterfrom
Frank3K:remove-join-path

Conversation

@Frank3K
Copy link

@Frank3K Frank3K commented Feb 28, 2026

Description

  • join-path has been unmaintained since 2017 and adds unnecessary dependency weight (pulling in url-join, as-array, and valid-url transitively)
  • Both usages in src/loaders/config-file.js and src/providers/fs.ts only ever passed filesystem paths — never URLs — so the URL-handling logic in join-path was dead code in this project
  • Replaced with path.join / import { join } from "node:path" from Node's built-in standard library
  • Removed stale eslint-disable comment that was suppressing a warning caused by join-path's untyped require()
  • Net result: 4 fewer packages in node_modules

Test plan

  • npm test passes with no regressions (test output identical to baseline)

join-path was only used as a thin wrapper around path.join in both
call sites. Switch to the built-in node:path module and remove the
now-unnecessary dependency.
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