From 924c4b0e1f32365f2de41098beb956feef3d916a Mon Sep 17 00:00:00 2001 From: sapphi-red <49056869+sapphi-red@users.noreply.github.com> Date: Fri, 6 Oct 2023 01:35:35 +0900 Subject: [PATCH] wip: add migration guide --- docs/guide/migration.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/guide/migration.md b/docs/guide/migration.md index e20c62b8b945ea..7e75012b0bba9f 100644 --- a/docs/guide/migration.md +++ b/docs/guide/migration.md @@ -4,6 +4,12 @@ Vite no longer supports Node.js 14 / 16 / 17 / 19, which reached its EOL. Node.js 18 / 20+ is now required. +## Rollup 4 + +Vite is now using Rollup 4. See the [Rollup 4 release notes here](https://github.com/rollup/rollup/releases/tag/v4.0.0). + +Rollup 4 is mostly compatible with Rollup 3. If you are using custom rollupOptions in your project and encounter issues, refer to the Rollup migration guide to upgrade your config. + ## 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.