Commit bc7df16
committed
chore: update vite
- Migrate minifier from `terser` to `esbuild`.
- Add `"type": "module"` to `package.json`.
References:
- [Migration from v4](https://vitejs.dev/guide/migration.html#deprecate-cjs-node-api)
- The closest `package.json` file has `"type": "module"`, or use the `.mjs`/`.mts` extension, e.g. `vite.config.mjs` or `vite.config.mts`.
- [Migration from v2](https://v3.vitejs.dev/guide/migration.html#general-changes)
- Terser is now an optional dependency. If you are using build.minify: 'terser', you need to install it.1 parent 066f7e7 commit bc7df16
3 files changed
+391
-187
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | | - | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
0 commit comments