@@ -215,7 +215,7 @@ async function get_bundle(
215
215
const { name, version } = current . meta ;
216
216
const path = new URL ( importee , importer ) . href . replace ( `${ NPM } /${ name } @${ version } /` , '' ) ;
217
217
218
- return normalize_path ( current , path ) ;
218
+ return normalize_path ( current , path , importee , importer ) ;
219
219
}
220
220
221
221
return new URL ( importee , importer ) . href ;
@@ -225,7 +225,7 @@ async function get_bundle(
225
225
if ( importee [ 0 ] === '#' ) {
226
226
if ( current ) {
227
227
const subpath = resolve_subpath ( current , importee ) ;
228
- return normalize_path ( current , subpath . slice ( 2 ) ) ;
228
+ return normalize_path ( current , subpath . slice ( 2 ) , importee , importer ) ;
229
229
}
230
230
return await resolve_local ( importee ) ;
231
231
}
@@ -266,7 +266,7 @@ async function get_bundle(
266
266
const pkg = await fetch_package ( pkg_name , pkg_name === 'svelte' ? svelte_version : v ) ;
267
267
const subpath = resolve_subpath ( pkg , '.' + ( match [ 3 ] ?? '' ) ) ;
268
268
269
- return normalize_path ( pkg , subpath . slice ( 2 ) ) ;
269
+ return normalize_path ( pkg , subpath . slice ( 2 ) , importee , importer ) ;
270
270
} ,
271
271
async load ( resolved ) {
272
272
if ( uid !== current_id ) throw ABORT ;
0 commit comments