mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 03:01:16 +00:00
16 lines
417 B
TypeScript
16 lines
417 B
TypeScript
import { defineConfig } from 'vite';
|
|
import { resolve } from 'node:path';
|
|
|
|
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: 'LowCodePluginCommand',
|
|
formats: ['es', 'cjs'],
|
|
// the proper extensions will be added
|
|
fileName: 'plugin-command',
|
|
},
|
|
},
|
|
});
|