chore: change the map to foreach (#278)
This commit is contained in:
		
							parent
							
								
									7df00319ea
								
							
						
					
					
						commit
						153a4d877d
					
				@ -22,6 +22,6 @@ export const createApp = ViteSSG(
 | 
			
		||||
  { routes, base: import.meta.env.BASE_URL },
 | 
			
		||||
  (ctx) => {
 | 
			
		||||
    // install all modules under `modules/`
 | 
			
		||||
    Object.values(import.meta.globEager('./modules/*.ts')).map(i => i.install?.(ctx))
 | 
			
		||||
    Object.values(import.meta.globEager('./modules/*.ts')).forEach(i => i.install?.(ctx))
 | 
			
		||||
  },
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user