File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
test/output/build/imports Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -238,6 +238,11 @@ export async function build(
238
238
const r = resolvers . resolveImport ( specifier ) ;
239
239
const a = aliases . get ( resolvePath ( path , r ) ) ;
240
240
return a ? relativePath ( path , a ) : isPathImport ( specifier ) ? specifier : r ; // fallback to specifier if enoent
241
+ } ,
242
+ resolveScript ( specifier ) {
243
+ const r = resolvers . resolveScript ( specifier ) ;
244
+ const a = aliases . get ( resolvePath ( path , r ) ) ;
245
+ return a ? relativePath ( path , a ) : specifier ; // fallback to specifier if enoent
241
246
}
242
247
}
243
248
} ) ;
Original file line number Diff line number Diff line change 36
36
< div id ="observablehq-center ">
37
37
< main id ="observablehq-main " class ="observablehq ">
38
38
< h1 id ="scripts " tabindex ="-1 "> < a class ="observablehq-header-anchor " href ="#scripts "> Scripts</ a > </ h1 >
39
- < script src ="./_import/top.js?sha=160847a6b4890d59f8e8862911bfbe3b8066955d31f2708cafbe51945c3c57b6 " type ="module "> </ script >
39
+ < script src ="./_import/top.160847a6.js " type ="module "> </ script >
40
40
< script src ="./_file/top.a53c5d5b.js " type ="other "> </ script >
41
41
</ main >
42
42
< footer id ="observablehq-footer ">
You can’t perform that action at this time.
0 commit comments