Skip to content

Commit

Permalink
docs: add a note about moduleResolution for rollup 4 (#15023)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red authored Nov 17, 2023
1 parent cc980fe commit 78b34e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/guide/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 78b34e0

Please sign in to comment.