Skip to content

Commit fcc3baf

Browse files
committed
Use fully qualified URL in source map urls
This lets Firefox find them relatively to node: URLs
1 parent f8d12b8 commit fcc3baf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

fixtures/flight/src/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ async function hydrateApp() {
4040
{
4141
callServer,
4242
findSourceMapURL(fileName) {
43-
return '/source-maps?name=' + encodeURIComponent(fileName);
43+
return (
44+
document.location.origin +
45+
'/source-maps?name=' +
46+
encodeURIComponent(fileName)
47+
);
4448
},
4549
}
4650
);

0 commit comments

Comments
 (0)