modules icon indicating copy to clipboard operation
modules copied to clipboard

File URL normalization changes

Open guybedford opened this issue 5 years ago • 1 comments

I've just added https://github.com/nodejs/node/pull/35477 to the agenda which is new WhatWG URL resolution changes.

I'm temporarily blocking that as it has effects on the modules system.

As an example, we have the following before and after:

new URL('////path/to/file.js', 'file:');
// Before the PR -> file:///path/to/file.js
// After the PR   -> file:////path/to/file.js

This in turn may affect module registry identity as the same module could be loaded twice in this way (if it were imported via import '///path/to/file.js' and import '/path/to/file.js' say).

It would be useful to discuss some of these cases further before landing there.

guybedford avatar Oct 05 '20 13:10 guybedford

I'd note that this does impact other areas like policies and whatever decisions we make should likely be documented and agreed upon across the whole project.

bmeck avatar Oct 05 '20 16:10 bmeck