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 +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ export async function loadAndUpgradeImportMap(workingDir: string): Promise<Impor
171
171
upgrade . forEach ( ( { name, url } ) => {
172
172
importMap . imports [ name ] = url
173
173
} )
174
- Deno . writeTextFile ( importMapFile , JSON . stringify ( importMap , undefined , 2 ) )
174
+ await Deno . writeTextFile ( importMapFile , JSON . stringify ( importMap , undefined , 2 ) )
175
175
}
176
176
177
177
return importMap
@@ -192,18 +192,6 @@ export function defaultImportMap(reactVersion: string): ImportMap {
192
192
}
193
193
}
194
194
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
-
207
195
function isFramework ( v : any ) : v is 'react' {
208
196
switch ( v ) {
209
197
case 'react' :
You can’t perform that action at this time.
0 commit comments