Skip to content

Commit 147dc0b

Browse files
committed
fix(config): move dts configuration to baseConfig for better maintainability
1 parent 5b5131e commit 147dc0b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tsup.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ const baseConfig: Options = {
1010
sourcemap: false,
1111
clean: true,
1212
minify: true,
13+
dts: {
14+
entry: 'src/index.ts',
15+
resolve: true,
16+
},
1317
esbuildOptions(options) {
1418
options.legalComments = 'none';
1519
return options;
@@ -20,10 +24,6 @@ export default defineConfig([
2024
{
2125
...baseConfig,
2226
format: ['cjs'],
23-
dts: {
24-
entry: 'src/index.ts',
25-
resolve: true,
26-
},
2727
define: {
2828
WORKER_FILE_PATH: JSON.stringify('./worker/index.js'),
2929
},

0 commit comments

Comments
 (0)