Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export module DotNet {
// However since we're the one calling the import keyword, they would be resolved relative to
// this framework bundle URL. Fix this by providing an absolute URL.
if (typeof url === "string" && url.startsWith("./")) {
url = document.baseURI + url.substr(2);
url = new URL(url.substr(2), document.baseURI).toString();
}

return import(/* webpackIgnore: true */ url);
Expand Down