Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit a9f9f94

Browse files
author
Je
committed
fix: fix bootstrap.js missing in SSG
1 parent d105918 commit a9f9f94

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

project.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,13 @@ export class Project {
765765
].filter(Boolean).join(this.isDev ? '\n' : '')
766766
module.hash = getHash(module.jsContent)
767767
module.jsFile = path.join(this.buildDir, `main.${module.hash.slice(0, hashShort)}.js`)
768+
module.deps = [
769+
this.isDev && 'https://deno.land/x/aleph/hmr.ts',
770+
'https://deno.land/x/aleph/bootstrap.ts'
771+
].filter(Boolean).map(url => ({
772+
url: String(url),
773+
hash: this.#modules.get(String(url).replace(reHttp, '//').replace(reModuleExt, '.js'))?.hash || ''
774+
}))
768775

769776
try {
770777
let prevHash = ''

0 commit comments

Comments
 (0)