Skip to content

Commit

Permalink
Migrate to Vite 5 and adjust configurations
Browse files Browse the repository at this point in the history
This commit updates the `vite` dependency to the latest version (5.1.X)
and makes necessary adjustments to accommodate deprecations and new
features introduced in Vite 5.1.X.

Changes include:

- Modify the import statement for SVG files to use `query: '?raw'` syntax
  due to the deprecation of the `as: raw` option.
- Update `moduleResolution` setting to `Bundler` in `tsconfig.json` to
  support the new TypeScript 5 option, aligning with Vite 5's migration
  guide for Rollup 4 compatibility without requiring file extensions on
  relative imports.

Plugin migrations for Vite 5 support:

- Bump `@modyfi/vite-plugin-yaml`, see @modyfi/vite-plugin-yaml#22.
- Bump `electron-vite`, see alex8088/electron-vite#335.
- Bump `vitejs/plugin-legacy`.
- Bump `vitejs/vite-plugin-vue`, see vitejs/vite-plugin-vue#290.
  • Loading branch information
undergroundwires committed Mar 13, 2024
1 parent a721e82 commit 4ac1425
Show file tree
Hide file tree
Showing 4 changed files with 2,955 additions and 1,263 deletions.
Loading

0 comments on commit 4ac1425

Please sign in to comment.