update: code-center-module add mark
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user