You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/migration.md
+11
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,17 @@
4
4
5
5
Vite no longer supports Node.js 14 / 16 / 17 / 19, which reached its EOL. Node.js 18 / 20+ is now required.
6
6
7
+
## Rollup 4
8
+
9
+
Vite is now using Rollup 4 which also brings along its breaking changes, in particular:
10
+
11
+
- Import assertions (`assertions` prop) has been renamed to import attributes (`attributes` prop).
12
+
- Acorn plugins are no longer supported.
13
+
- For Vite plugins, `this.resolve``skipSelf` option is now `true` by default.
14
+
- For Vite plugins, `this.parse` now only supports the `allowReturnOutsideFunction` option for now.
15
+
16
+
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`.
17
+
7
18
## Deprecate CJS Node API
8
19
9
20
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.
0 commit comments