mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-04-11 02:13:14 +08:00
使用vite(rolldown)替代unbuild
This commit is contained in:
14
packages/@core/composables/vite.config.ts
Normal file
14
packages/@core/composables/vite.config.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
import { defineConfig } from 'vite';
|
||||
import dts from 'vite-plugin-dts';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [vue(), dts({ logLevel: 'error' })],
|
||||
build: {
|
||||
lib: {
|
||||
entry: './src/index.ts',
|
||||
fileName: () => 'index.mjs',
|
||||
formats: ['es'],
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user