This commit is contained in:
2025-04-05 14:48:01 +08:00
parent a225bd4f16
commit 2ff8590ceb
23 changed files with 1079 additions and 98 deletions

View File

@@ -24,7 +24,7 @@ const config = {
replace({
preventAssignment: true, // 防止意外赋值
DEV_SERVER: JSON.stringify(isDev), // 替换 process.env.NODE_ENV
VERSION: JSON.stringify(pkgs.version),
// VERSION: JSON.stringify(pkgs.version),
}),
alias({
// only esbuild needs to be configured
@@ -54,6 +54,7 @@ const config = {
}),
resolve({
preferBuiltins: true, // 强制优先使用内置模块
browser: false,
}),
commonjs(),
esbuild({
@@ -67,9 +68,9 @@ const config = {
/@kevisual\/router(\/.*)?/, //, // 路由
/@kevisual\/use-config(\/.*)?/, //
// 'sequelize', // 数据库 orm
// 'ioredis', // redis
// 'pg', // pg
'sequelize', // 数据库 orm
'ioredis', // redis
'pg', // pg
],
};
export default config;