chore: 添加 service 打包编译设置

This commit is contained in:
ChenZhaoYu
2023-02-13 20:10:08 +08:00
parent 35f353c1f7
commit 3debaec4b2
7 changed files with 344 additions and 1 deletions

13
service/tsup.config.ts Normal file
View File

@@ -0,0 +1,13 @@
import { defineConfig } from 'tsup'
export default defineConfig({
entry: ['src/index.ts'],
outDir: 'build',
target: 'es2020',
format: ['cjs'],
splitting: false,
sourcemap: true,
minify: false,
shims: true,
dts: false,
})