Skip to content

Commit 603c833

Browse files
mihar-22sampotts
authored andcommitted
refactor(react): cleanup
1 parent bc6eb71 commit 603c833

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/react/tsdown.config.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type BuildMode = 'dev' | 'default';
66

77
const buildModes: BuildMode[] = ['dev', 'default'];
88

9-
const createConfig = (mode: BuildMode, isWatch: boolean): UserConfig => ({
9+
const createConfig = (mode: BuildMode): UserConfig => ({
1010
entry: 'src/**/index.ts',
1111
platform: 'browser',
1212
format: 'es',
@@ -42,7 +42,4 @@ const createConfig = (mode: BuildMode, isWatch: boolean): UserConfig => ({
4242
],
4343
});
4444

45-
export default defineConfig((cliOptions) => {
46-
const isWatch = !!cliOptions.watch;
47-
return buildModes.map((mode) => createConfig(mode, isWatch));
48-
});
45+
export default defineConfig(buildModes.map((mode) => createConfig(mode)));

0 commit comments

Comments
 (0)