This repository was archived by the owner on Jul 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -451,15 +451,15 @@ export default class Project {
451
451
await this . _compile ( '/pages' + rp )
452
452
}
453
453
454
- const preCompileUrls = [
454
+ const precompileUrls = [
455
455
'https://deno.land/x/aleph/bootstrap.ts' ,
456
456
'https://deno.land/x/aleph/renderer.ts' ,
457
457
'https://deno.land/x/aleph/vendor/tslib/tslib.js' ,
458
458
]
459
459
if ( this . isDev ) {
460
- preCompileUrls . push ( 'https://deno.land/x/aleph/hmr.ts' )
460
+ precompileUrls . push ( 'https://deno.land/x/aleph/hmr.ts' )
461
461
}
462
- for ( const url of preCompileUrls ) {
462
+ for ( const url of precompileUrls ) {
463
463
await this . _compile ( url )
464
464
}
465
465
await this . _createMainModule ( )
@@ -762,6 +762,8 @@ export default class Project {
762
762
u . searchParams . set ( 'dev' , '' )
763
763
}
764
764
dlUrl = u . toString ( ) . replace ( / = ( & | $ ) / , '$1' )
765
+ } else if ( dlUrl . startsWith ( 'https://deno.land/x/aleph/' ) ) {
766
+ dlUrl = `https://deno.land/x/aleph@v${ version } /` + util . trimPrefix ( dlUrl , 'https://deno.land/x/aleph/' )
765
767
}
766
768
if ( mod . sourceHash === '' ) {
767
769
log . info ( 'Download' , url , dlUrl != url ? colors . dim ( `• ${ dlUrl } ` ) : '' )
You can’t perform that action at this time.
0 commit comments