diff --git a/docs/guide/migration.md b/docs/guide/migration.md index 52a19cf7f28212..7b79a9b139077c 100644 --- a/docs/guide/migration.md +++ b/docs/guide/migration.md @@ -15,6 +15,8 @@ Vite is now using Rollup 4 which also brings along its breaking changes, in part Read the full breaking changes in [Rollup's release notes](https://github.com/rollup/rollup/releases/tag/v4.0.0) for build-related changes in [`build.rollupOptions`](/config/build-options.md#build-rollupoptions). +If you are using TypeScript, make sure to set `moduleResolution: 'bundler'` (or `node16`/`nodenext`) as Rollup 4 requires it. Or you can set `skipLibCheck: true` instead. + ## Deprecate CJS Node API The CJS Node API of Vite is deprecated. When calling `require('vite')`, a deprecation warning is now logged. You should update your files or frameworks to import the ESM build of Vite instead.