Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Commit e3b1d60

Browse files
committed
tsup 設定変更
1 parent 534d38a commit e3b1d60

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

workspaces/client/tsup.config.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default defineConfig(async (): Promise<Options[]> => {
2626
},
2727
env: {
2828
API_URL: '',
29-
NODE_ENV: process.env['NODE_ENV'] || 'development',
29+
NODE_ENV: 'production',
3030
PATH_LIST: IMAGE_PATH_LIST.join(',') || '',
3131
},
3232
esbuildOptions(options) {
@@ -54,14 +54,14 @@ export default defineConfig(async (): Promise<Options[]> => {
5454
'.wasm': 'binary',
5555
},
5656
metafile: true,
57-
minify: false,
57+
minify: true,
5858
outDir: OUTPUT_DIR,
5959
platform: 'browser',
6060
shims: true,
61-
sourcemap: 'inline',
62-
splitting: false,
63-
target: ['chrome58', 'firefox57', 'safari11', 'edge18'],
64-
treeshake: false,
61+
sourcemap: false,
62+
splitting: true,
63+
target: ['chrome124'],
64+
treeshake: true,
6565
},
6666
];
6767
});

workspaces/server/tsup.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ export default defineConfig(async (): Promise<Options[]> => {
2222
},
2323
format: 'cjs',
2424
metafile: true,
25-
minify: false,
25+
minify: true,
2626
noExternal: [/@wsh-2024\/.*/],
2727
outDir: OUTPUT_DIR,
2828
shims: true,
2929
sourcemap: true,
30-
splitting: false,
30+
splitting: true,
3131
target: 'node18',
32-
treeshake: false,
32+
treeshake: true,
3333
},
3434
];
3535
});

0 commit comments

Comments
 (0)