You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e6b5bf0
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(runtime): build the URL a module is reported under in one place
Script origins of classic scripts, file ES modules and JSON modules, import.meta.url and the worker inspector URL each built their own file:// URL from a path. ReportedModuleUrl in ModuleUrl now does it for all of them: an http(s) URL in the loader's spelling, any other string that carries a scheme unchanged, and otherwise file:// plus the path with the base directory removed (file:///app/ when empty). The outputs are unchanged except the worker inspector URL, which for an http(s) script is now the normalized URL and for any other scheme-carrying script is the script string itself rather than a file:// prefix glued onto it.
The docs no longer describe the file://http… string, which is not a form the loader accepts.
0 commit comments