update: code-center-module add mark

This commit is contained in:
2025-06-27 01:58:16 +08:00
parent 922b0c421f
commit f694299059
10 changed files with 383 additions and 18 deletions

View File

@@ -186,5 +186,46 @@ const oauthConfig = [
],
},
]
export default [config, dtsConfig, ...systemConfig, ...modelConfig, ...oauthConfig];
const markModelConfig = [
{
input: './src/mark/mark-model.ts',
output: {
dir: './dist',
entryFileNames: 'mark-model.js',
format: 'esm',
},
external: [
...external, // 引入外部依赖
],
plugins: [
replace(replaceConfig),
alias({
entries: [
{ find: '@', replacement: path.resolve('src') }, // 配置 @ 为 src 目录
],
}),
resolve({
preferBuiltins: true, // 强制优先使用内置模块
}),
commonjs(),
esbuild({
target: 'node22', // 目标为 Node.js 14
minify: false, // 启用代码压缩
tsconfig: 'tsconfig.json',
}),
json(),
],
},
{
input: './src/mark/mark-model.ts',
output: {
dir: './dist',
entryFileNames: 'mark-model.d.ts',
format: 'esm',
},
plugins: [
dts(),
],
},
]
export default [config, dtsConfig, ...systemConfig, ...modelConfig, ...oauthConfig, ...markModelConfig];