lowcode-engine/packages/types/vite.config.ts
2024-03-25 17:58:47 +08:00

25 lines
559 B
TypeScript

import { defineConfig } from 'vite';
import { resolve } from 'node:path';
import dts from 'vite-plugin-dts';
export default defineConfig({
build: {
lib: {
// Could also be a dictionary or array of multiple entry points
entry: resolve(import.meta.dirname, 'src/index.ts'),
name: 'LowcodeTypes',
formats: ['es'],
// the proper extensions will be added
fileName: 'lowcodeTypes',
},
},
plugins: [
dts({
rollupTypes: true,
compilerOptions: {
stripInternal: true,
},
}),
],
});