WICG / import-maps

How to control the behavior of JavaScript imports
https://html.spec.whatwg.org/multipage/webappapis.html#import-maps
Other
2.65k stars 69 forks source link

How should protocol relative URLs be handled? #265

Closed s4san closed 2 years ago

s4san commented 2 years ago
async function importRelative() {
    const i = await import('//code.jquery.com/jquery-3.5.1.js');
        console.log(i);
};

Dynamic imports like these are broken in Chrome due to browsers treating URLs starting with / as modules specified through import maps