mirror of
				https://github.com/Tencent/tmagic-editor.git
				synced 2025-11-04 10:49:51 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			434 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			434 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { defineConfig } from 'vite';
 | 
						|
import dts from 'vite-plugin-dts';
 | 
						|
 | 
						|
export default defineConfig({
 | 
						|
  plugins: [
 | 
						|
    dts({
 | 
						|
      outputDir: 'dist/types',
 | 
						|
      include: ['src/**/*'],
 | 
						|
      staticImport: true,
 | 
						|
      insertTypesEntry: true,
 | 
						|
      logDiagnostics: true,
 | 
						|
    }),
 | 
						|
  ],
 | 
						|
 | 
						|
  build: {
 | 
						|
    sourcemap: true,
 | 
						|
 | 
						|
    lib: {
 | 
						|
      entry: 'src/index.ts',
 | 
						|
      name: 'TMagicSchema',
 | 
						|
      fileName: 'tmagic-schema',
 | 
						|
    },
 | 
						|
  },
 | 
						|
});
 |