24 lines
476 B
TypeScript
24 lines
476 B
TypeScript
import { defineConfig } from 'vite';
|
|
import vue from '@vitejs/plugin-vue';
|
|
import vueJsx from '@vitejs/plugin-vue-jsx';
|
|
|
|
export default defineConfig({
|
|
plugins: [vue(), vueJsx()],
|
|
build: {
|
|
lib: {
|
|
entry: 'src/index.ts',
|
|
fileName: 'index',
|
|
formats: ['es'],
|
|
name: 'Knife4jVue3Ui',
|
|
},
|
|
rollupOptions: {
|
|
external: [
|
|
'vue',
|
|
'@kt/openapi-parser',
|
|
'antdv-next',
|
|
'@antdv-next/icons',
|
|
],
|
|
},
|
|
},
|
|
});
|