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.
36 lines
736 B
JSON
36 lines
736 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2017",
|
|
"lib": ["ESNext", "DOM", "DOM.Iterable"],
|
|
"module": "ESNext",
|
|
"importHelpers": true,
|
|
"downlevelIteration": true,
|
|
"jsx": "preserve",
|
|
"moduleResolution": "Bundler",
|
|
"strictNullChecks": true,
|
|
"experimentalDecorators": true,
|
|
"esModuleInterop": true,
|
|
"resolveJsonModule": true,
|
|
"noUnusedLocals": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"verbatimModuleSyntax": true,
|
|
"skipLibCheck": true,
|
|
"sourceMap": true,
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@/*": [
|
|
"src/*"
|
|
],
|
|
"@tests/*": [
|
|
"tests/*"
|
|
]
|
|
}
|
|
},
|
|
"include": [
|
|
"**/*.ts",
|
|
"**/*.vue"
|
|
],
|
|
"exclude": [
|
|
"node_modules"
|
|
]
|
|
} |