使用vite(rolldown)替代unbuild

This commit is contained in:
dap
2026-01-07 12:23:36 +08:00
parent fbbef8b314
commit 60335cbd56
25 changed files with 179 additions and 39 deletions

View File

@@ -0,0 +1,14 @@
import vue from '@vitejs/plugin-vue';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [vue()],
build: {
lib: {
entry: './src/index.ts',
name: 'MenuUI',
fileName: () => 'index.mjs',
formats: ['es'],
},
},
});