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:
1 parent
5043a49779
commit
019b90984d
2 files changed
+3
No files matched your search
@@ -21,6 +21,7 @@
|
||||
"napcat-common": "workspace:*",
|
||||
"napcat-onebot": "workspace:*",
|
||||
"napcat-webui-backend": "workspace:*",
|
||||
"napcat-vite": "workspace:*",
|
||||
"napcat-qrcode": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -5,6 +5,7 @@ import nodeResolve from '@rollup/plugin-node-resolve';
|
||||
import { autoIncludeTSPlugin } from "napcat-vite/vite-auto-include.js";
|
||||
import { builtinModules } from 'module';
|
||||
import react from '@vitejs/plugin-react-swc';
|
||||
import napcatVersion from "napcat-vite/vite-plugin-version.js";
|
||||
//依赖排除
|
||||
const external = [
|
||||
'silk-wasm',
|
||||
@@ -36,6 +37,7 @@ const FrameworkBaseConfigPlugin: PluginOption[] = [
|
||||
],
|
||||
}),
|
||||
nodeResolve(),
|
||||
napcatVersion(),
|
||||
];
|
||||
const FrameworkBaseConfig = () =>
|
||||
defineConfig({
|
||||
|
||||
Reference in new issue
Block a user