mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-04-05 10:33:14 +08:00
使用vite(rolldown)替代unbuild
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "pnpm unbuild"
|
||||
"build": "pnpm vite build"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
|
||||
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