Skip to content

Commit b3916f7

Browse files
committed
Improve upgrade guide
1 parent 5cd5037 commit b3916f7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

UPGRADE.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@ This version adds support for Vite 5 while removing support for Vite 3 and 4.
1313

1414
1. Update to the latest version of the `laravel-vite-plugin`, `vite`, and any Vite plugins you may have installed, such as [@vitejs/plugin-vue](https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue) or [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react).
1515

16-
You should also check the upgrading guide and changelogs for those packages.
16+
The following command will update `laravel-vite-plugin` and `vite` only:
1717

1818
```
19-
npm install vite@^5.0.0 laravel-vite-plugin@^1.x ...additional plugins
19+
npm install vite@^5.0.0 laravel-vite-plugin@^1.x
2020
```
2121

22-
2. Ensure your `package.json` contains `"type": "modules"`. Run the following command in your project's root directory or anywhere you have your `package.json` files.
22+
You should also check the upgrading guide and changelogs for any packages you update. The [`vite` migrations guide](https://vitejs.dev/guide/migration.html) is available on their website.
23+
24+
2. Ensure your `package.json` contains `"type": "modules"`.
25+
26+
Run the following command in your project's root directory or anywhere you have your `package.json` files:
2327

2428
```sh
2529
npm pkg set type=module

0 commit comments

Comments
 (0)