Skip to content

Comments

feat: allow file:// protocol prefix in absolute paths#210

Open
laymonage wants to merge 1 commit intowebpack:mainfrom
laymonage:feature/allow-file-protocol-in-absolute-path
Open

feat: allow file:// protocol prefix in absolute paths#210
laymonage wants to merge 1 commit intowebpack:mainfrom
laymonage:feature/allow-file-protocol-in-absolute-path

Conversation

@laymonage
Copy link

Summary

Fixes #209

What kind of change does this PR introduce?

This allows an optional file:// protocol prefix for absolute paths, such as those returned by import.meta.resolve().

Did you add tests for your changes?

Yes.

Does this PR introduce a breaking change?

Not that I know of.

If relevant, what needs to be documented once your changes are merged or what have you already documented?

I couldn't find docs for the absolute path functions, so I didn't add any.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Feb 17, 2026

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: laymonage / name: S​age Abdullah (6651088)

Comment on lines +332 to +334
createSuccessTestCase("absolutePath #7", {
testAbsolutePath: "file:///C:/directory/deep/tree",
});
Copy link
Author

Choose a reason for hiding this comment

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

I'm not sure if it's sufficient for Windows.

Seems OK based on nodejs/node#20080 and https://en.wikipedia.org/wiki/File_URI_scheme#Windows, but I haven't tested it myself

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.

Support absolute paths with file:// protocol prefix

1 participant