32 lines
558 B
TypeScript
32 lines
558 B
TypeScript
|
|
import vueJsx from '@vitejs/plugin-vue-jsx';
|
||
|
|
import { defineConfig } from 'tsdown';
|
||
|
|
import vue from 'unplugin-vue/rolldown';
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
entry: 'src/index.ts',
|
||
|
|
outDir: 'dist',
|
||
|
|
format: ['esm'],
|
||
|
|
minify: true,
|
||
|
|
clean: false,
|
||
|
|
external: [
|
||
|
|
'vue',
|
||
|
|
'element-plus-cisdi',
|
||
|
|
'@lingshu/types',
|
||
|
|
'lodash-es',
|
||
|
|
'uuid',
|
||
|
|
],
|
||
|
|
unbundle: true,
|
||
|
|
plugins: [
|
||
|
|
vue({ isProduction: true }),
|
||
|
|
vueJsx(),
|
||
|
|
],
|
||
|
|
dts: {
|
||
|
|
vue: true,
|
||
|
|
sourcemap: true,
|
||
|
|
},
|
||
|
|
exports: {
|
||
|
|
all: true,
|
||
|
|
devExports: 'development',
|
||
|
|
},
|
||
|
|
});
|