@@ -215,7 +215,7 @@ async function get_bundle(
215215 const { name, version } = current . meta ;
216216 const path = new URL ( importee , importer ) . href . replace ( `${ NPM } /${ name } @${ version } /` , '' ) ;
217217
218- return normalize_path ( current , path ) ;
218+ return normalize_path ( current , path , importee , importer ) ;
219219 }
220220
221221 return new URL ( importee , importer ) . href ;
@@ -225,7 +225,7 @@ async function get_bundle(
225225 if ( importee [ 0 ] === '#' ) {
226226 if ( current ) {
227227 const subpath = resolve_subpath ( current , importee ) ;
228- return normalize_path ( current , subpath . slice ( 2 ) ) ;
228+ return normalize_path ( current , subpath . slice ( 2 ) , importee , importer ) ;
229229 }
230230 return await resolve_local ( importee ) ;
231231 }
@@ -266,7 +266,7 @@ async function get_bundle(
266266 const pkg = await fetch_package ( pkg_name , pkg_name === 'svelte' ? svelte_version : v ) ;
267267 const subpath = resolve_subpath ( pkg , '.' + ( match [ 3 ] ?? '' ) ) ;
268268
269- return normalize_path ( pkg , subpath . slice ( 2 ) ) ;
269+ return normalize_path ( pkg , subpath . slice ( 2 ) , importee , importer ) ;
270270 } ,
271271 async load ( resolved ) {
272272 if ( uid !== current_id ) throw ABORT ;
0 commit comments