Skip to content

Commit

Permalink
fix(polyfill): add proper url base to import shim (#2410)
Browse files Browse the repository at this point in the history
  • Loading branch information
hv-pul authored Jun 24, 2020
1 parent e551be2 commit 96dd746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/output-targets/dist-lazy/generate-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const getSystemLoader = async (config: d.Config, compilerCtx: d.CompilerCtx, cor
var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
var start = function() {
var url = new URL('${corePath}', resourcesUrl);
var url = new URL('${corePath}', new URL(resourcesUrl, window.location.origin));
System.import(url.href);
};
Expand Down

1 comment on commit 96dd746

@kwchan22
Copy link

Choose a reason for hiding this comment

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

This change is causing this issue #2582

Please sign in to comment.