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

Commit a6b3eca

Browse files
committed
Clean up
1 parent 2dc8846 commit a6b3eca

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

server/config.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export async function loadAndUpgradeImportMap(workingDir: string): Promise<Impor
171171
upgrade.forEach(({ name, url }) => {
172172
importMap.imports[name] = url
173173
})
174-
Deno.writeTextFile(importMapFile, JSON.stringify(importMap, undefined, 2))
174+
await Deno.writeTextFile(importMapFile, JSON.stringify(importMap, undefined, 2))
175175
}
176176

177177
return importMap
@@ -192,18 +192,6 @@ export function defaultImportMap(reactVersion: string): ImportMap {
192192
}
193193
}
194194

195-
export function updateImports(reactVersion: string): Record<string, string> {
196-
const alephPkgUri = getAlephPkgUri()
197-
return {
198-
'aleph/': `${alephPkgUri}/`,
199-
'framework': `${alephPkgUri}/framework/core/mod.ts`,
200-
'framework/react': `${alephPkgUri}/framework/react/mod.ts`,
201-
'react': `https://esm.sh/react@${reactVersion}`,
202-
'react-dom': `https://esm.sh/react-dom@${reactVersion}`,
203-
'react-dom/server': `https://esm.sh/react-dom@${reactVersion}/server`,
204-
}
205-
}
206-
207195
function isFramework(v: any): v is 'react' {
208196
switch (v) {
209197
case 'react':

0 commit comments

Comments
 (0)