mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-11 18:42:56 +00:00
25 lines
566 B
TypeScript
25 lines
566 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: 'LowCodeRendererCore',
|
|
formats: ['es'],
|
|
// the proper extensions will be added
|
|
fileName: 'rendererCore',
|
|
},
|
|
},
|
|
plugins: [
|
|
dts({
|
|
rollupTypes: true,
|
|
compilerOptions: {
|
|
stripInternal: true,
|
|
},
|
|
}),
|
|
],
|
|
});
|