mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:27:09 -05:00 
			
		
		
		
	Modify the handling of patterns in the `crawl` function to correctly convert the current path to a pattern when it contains backslash on Windows, in according to fast-glob's docs.
		
			
				
	
	
		
			21 lines
		
	
	
		
			422 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			422 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { defineConfig } from 'vite';
 | 
						|
import tsconfigPaths from 'vite-tsconfig-paths';
 | 
						|
 | 
						|
export default defineConfig({
 | 
						|
  resolve: { alias: { src: '/src' } },
 | 
						|
  build: {
 | 
						|
    rollupOptions: {
 | 
						|
      input: 'src/index.ts',
 | 
						|
      output: {
 | 
						|
        dir: 'dist',
 | 
						|
      },
 | 
						|
    },
 | 
						|
    ssr: true,
 | 
						|
  },
 | 
						|
  ssr: {
 | 
						|
    // bundle everything except for Node built-ins
 | 
						|
    noExternal: /^(?!node:).*$/,
 | 
						|
  },
 | 
						|
  plugins: [tsconfigPaths()],
 | 
						|
});
 |