From f1d806327b2526272ad2d6a2bd240107406b6b4b Mon Sep 17 00:00:00 2001 From: sapphi-red Date: Tue, 31 May 2022 23:46:11 +0900 Subject: [PATCH] docs: mention default port change from #8148 --- docs/guide/migration.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/guide/migration.md b/docs/guide/migration.md index 9d38555bc44745..dbacfd6da1cd38 100644 --- a/docs/guide/migration.md +++ b/docs/guide/migration.md @@ -27,6 +27,8 @@ A small fraction of users will now require using [@vitejs/plugin-legacy](https:/ ## Dev Server Changes +Vite's default dev server port is now 5173. You can use [`server.port`](../config/server-options.md#server-port) to set it to 3000. + Vite optimizes dependencies with esbuild to both convert CJS-only deps to ESM and to reduce the number of modules the browser needs to request. In v3, the default strategy to discover and batch dependencies has changed. Vite no longer pre-scans user code with esbuild to get an initial list of dependencies on cold start. Instead, it delays the first dependency optimization run until every imported user module on load is processed. To get back the v2 strategy, you can use [`optimizeDeps.devScan`](../config/dep-optimization-options.md#optimizedepsdevscan).