Skip to content

Commit 55e95f8

Browse files
committed
build: update tsdown config
1 parent 38cc1c6 commit 55e95f8

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

tsdown.config.ts

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
1-
import type { Options } from 'tsdown'
1+
import type { UserConfig } from 'tsdown'
22
import { defineConfig } from 'tsdown'
33

4-
export default defineConfig([{
4+
const config: UserConfig[] = defineConfig([{
55
entry: ['src/json5-loader.cts'],
66
format: 'cjs',
7+
minify: true,
78
dts: false,
89
}, {
9-
entry: ['src/{index,rsbuild,helper,server}.ts'],
10-
format: ['cjs', 'esm'],
10+
entry: {
11+
index: 'src/index.ts',
12+
rsbuild: 'src/rsbuild.ts',
13+
helper: 'src/helper/index.ts',
14+
server: 'src/server.ts',
15+
},
16+
format: 'esm',
17+
shims: true,
18+
sourcemap: false,
19+
minify: true,
1120
dts: true,
12-
}]) as Options
21+
}])
22+
23+
export default config

0 commit comments

Comments
 (0)