mirror of
				https://github.com/excalidraw/excalidraw.git
				synced 2025-11-04 04:44:31 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			483 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			483 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { defineConfig } from "vite";
 | 
						|
 | 
						|
// https://vitejs.dev/config/
 | 
						|
export default defineConfig({
 | 
						|
  server: {
 | 
						|
    port: 3001,
 | 
						|
    // open the browser
 | 
						|
    open: true,
 | 
						|
  },
 | 
						|
  publicDir: "public",
 | 
						|
  optimizeDeps: {
 | 
						|
    esbuildOptions: {
 | 
						|
      // Bumping to 2022 due to "Arbitrary module namespace identifier names" not being
 | 
						|
      // supported in Vite's default browser target https://github.com/vitejs/vite/issues/13556
 | 
						|
      target: "es2022",
 | 
						|
      treeShaking: true,
 | 
						|
    },
 | 
						|
  },
 | 
						|
});
 |