@@ -748,23 +748,21 @@ export class Project {
748
748
}
749
749
const module = this . _moduleFromURL ( '/main.js' )
750
750
const metaFile = path . join ( this . buildDir , 'main.meta.json' )
751
- const deps = [
752
- this . isDev && 'https://deno.land/x/aleph/hmr.ts' ,
753
- 'https://deno.land/x/aleph/bootstrap.ts'
754
- ] . filter ( Boolean ) . map ( url => ( {
755
- url : String ( url ) ,
756
- hash : this . #modules. get ( String ( url ) . replace ( reHttp , '//' ) . replace ( reModuleExt , '.js' ) ) ?. hash || ''
757
- } ) )
758
751
759
752
module . jsContent = [
760
753
this . isDev && 'import "./-/deno.land/x/aleph/hmr.js";' ,
754
+ 'import "./-/deno.land/x/aleph/aleph.js";' ,
755
+ 'import "./-/deno.land/x/aleph/context.js";' ,
756
+ 'import "./-/deno.land/x/aleph/error.js";' ,
757
+ 'import "./-/deno.land/x/aleph/events.js";' ,
758
+ 'import "./-/deno.land/x/aleph/routing.js";' ,
759
+ 'import "./-/deno.land/x/aleph/util.js";' ,
761
760
'import bootstrap from "./-/deno.land/x/aleph/bootstrap.js";' ,
762
761
`Object.assign(window, ${ JSON . stringify ( { ALEPH : ( globalThis as any ) [ 'ALEPH' ] } , undefined , this . isDev ? 4 : undefined ) } );` ,
763
762
`bootstrap(${ JSON . stringify ( config , undefined , this . isDev ? 4 : undefined ) } );`
764
763
] . filter ( Boolean ) . join ( this . isDev ? '\n' : '' )
765
764
module . hash = getHash ( module . jsContent )
766
765
module . jsFile = path . join ( this . buildDir , `main.${ module . hash . slice ( 0 , hashShort ) } .js` )
767
- module . deps = deps
768
766
769
767
try {
770
768
let prevHash = ''
0 commit comments