mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-19 13:10:16 +08:00
Add napcat-vite dependency and plugin integration
Added 'napcat-vite' as a workspace dependency in package.json and integrated its version plugin into the Vite configuration. This enables version management features provided by napcat-vite for the framework.
This commit is contained in:
parent
5043a49779
commit
019b90984d
@ -21,6 +21,7 @@
|
|||||||
"napcat-common": "workspace:*",
|
"napcat-common": "workspace:*",
|
||||||
"napcat-onebot": "workspace:*",
|
"napcat-onebot": "workspace:*",
|
||||||
"napcat-webui-backend": "workspace:*",
|
"napcat-webui-backend": "workspace:*",
|
||||||
|
"napcat-vite": "workspace:*",
|
||||||
"napcat-qrcode": "workspace:*"
|
"napcat-qrcode": "workspace:*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@ -5,6 +5,7 @@ import nodeResolve from '@rollup/plugin-node-resolve';
|
|||||||
import { autoIncludeTSPlugin } from "napcat-vite/vite-auto-include.js";
|
import { autoIncludeTSPlugin } from "napcat-vite/vite-auto-include.js";
|
||||||
import { builtinModules } from 'module';
|
import { builtinModules } from 'module';
|
||||||
import react from '@vitejs/plugin-react-swc';
|
import react from '@vitejs/plugin-react-swc';
|
||||||
|
import napcatVersion from "napcat-vite/vite-plugin-version.js";
|
||||||
//依赖排除
|
//依赖排除
|
||||||
const external = [
|
const external = [
|
||||||
'silk-wasm',
|
'silk-wasm',
|
||||||
@ -36,6 +37,7 @@ const FrameworkBaseConfigPlugin: PluginOption[] = [
|
|||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
nodeResolve(),
|
nodeResolve(),
|
||||||
|
napcatVersion(),
|
||||||
];
|
];
|
||||||
const FrameworkBaseConfig = () =>
|
const FrameworkBaseConfig = () =>
|
||||||
defineConfig({
|
defineConfig({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user