Skip to content

Commit a8889dc

Browse files
fix: test setup entry point
1 parent cf355d3 commit a8889dc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export async function defineConfig(userConfig: ViteUserConfig = {}): Promise<Vit
8585
],
8686
globalSetup: resolvedNitroConfig.global
8787
? [
88-
join(currentDir, 'setup.mjs'),
88+
join(currentDir, 'setup.js'),
8989
]
9090
: undefined,
9191
// @ts-expect-error: Append Nitro for global setup file

tsdown.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ const config: UserConfig | UserConfigFn = defineConfig({
66
index: 'src/index.ts',
77
config: 'src/config.ts',
88
e2e: 'src/e2e.ts',
9+
setup: 'src/setup.ts',
910
},
1011
external: [
1112
'vite',
1213
'vitest',
1314
'vitest/config',
1415
],
1516
dts: true,
17+
unbundle: true,
1618
})
1719

1820
export default config

0 commit comments

Comments
 (0)