Make Vite work with matrix-widget-api
This commit is contained in:
		
					parent
					
						
							
								7fab4ca1ba
							
						
					
				
			
			
				commit
				
					
						fc26bef80a
					
				
			
		
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -41,6 +41,12 @@ export default defineConfig(({ mode }) => {
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    resolve: {
 | 
					    resolve: {
 | 
				
			||||||
 | 
					      alias: {
 | 
				
			||||||
 | 
					        // matrix-widget-api has its transpiled lib/index.js as its entry point,
 | 
				
			||||||
 | 
					        // which Vite for some reason refuses to work with, so we point it to
 | 
				
			||||||
 | 
					        // src/index.ts instead
 | 
				
			||||||
 | 
					        "matrix-widget-api": "matrix-widget-api/src/index.ts",
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
      dedupe: [
 | 
					      dedupe: [
 | 
				
			||||||
        "react",
 | 
					        "react",
 | 
				
			||||||
        "react-dom",
 | 
					        "react-dom",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue