Skip to content

Commit 1cacfed

Browse files
authored
Merge pull request #106 from jsonnull/fix-react-refresh-dev
Fix: Use mode from source config
2 parents 2f2c25d + 41db615 commit 1cacfed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/serve.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export async function bootstrap(config: Configuration | Configuration[], server:
2626
const inlineConfig = withExternalBuiltins(resolveViteConfig(config))
2727
await viteBuild(mergeConfig(
2828
{
29-
mode: 'development',
29+
mode: server.config.mode,
3030
build: {
3131
watch: {},
3232
},

0 commit comments

Comments
 (0)