Skip to content

Commit ed87019

Browse files
committed
Improve upgrade guide
1 parent 2891ffa commit ed87019

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

UPGRADE.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@
22

33
## `0.x` to `1.x`
44

5-
This release adds support for Vite 5 and removes support for Vite 3 and 4.
5+
- Adds support for Vite 5 and removes support for Vite 3 and 4.
6+
- Introduces an `npx clean-orphaned-assets` command to clean orphaned assets in Vite's build directories.
7+
- Introduces Valet / Herd TLS certificate auto detection.
68

79
### Notable Changes
810

9-
1. Dropped support for CJS: https://github.com/laravel/vite-plugin/pull/235
11+
1. Dropped CJS build: https://github.com/laravel/vite-plugin/pull/235
1012
2. Dropped support for a `boolean` value of `server.https` option in `vite.config.js`: https://github.com/laravel/vite-plugin/pull/254
13+
3. Dropped support for Node 14, 15, 16, 17, and 19: https://github.com/laravel/vite-plugin/pull/269
14+
15+
Please see the Vite migration documentation for why these changes have been made and additional changes you may need to consider: https://vitejs.dev/guide/migration
1116

1217
### Upgrade Path
1318

@@ -16,10 +21,10 @@ This release adds support for Vite 5 and removes support for Vite 3 and 4.
1621
The following command will update `laravel-vite-plugin` and `vite` only:
1722

1823
```
19-
npm install vite@^5.0.0 laravel-vite-plugin@^1.x
24+
npm install vite@^5.0.0 laravel-vite-plugin@^1.0.0
2025
```
2126

22-
You should also check the upgrade guide and changelogs for any packages you update. The [`vite` migrations guide](https://vitejs.dev/guide/migration.html) is available on their website.
27+
You should also check the upgrade guide and changelogs for any packages you update, including [Vite's migrations guide](https://vitejs.dev/guide/migration.html).
2328

2429
2. Ensure your `package.json` contains `"type": "module"`.
2530

0 commit comments

Comments
 (0)