Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(web): update vite and fix vite.config #1170

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
"@types/react-dom": "18.2.25",
"@types/react-resizable": "3.0.7",
"@types/react-router-dom": "5.3.3",
"@vitejs/plugin-react": "4.2.1",
"@vitest/coverage-v8": "1.5.0",
"@vitejs/plugin-react": "4.3.0",
"@vitest/coverage-v8": "1.6.0",
"eslint": "8.57.0",
"eslint-config-reearth": "0.3.0",
"eslint-plugin-storybook": "0.8.0",
Expand All @@ -75,9 +75,9 @@
"storybook": "8.0.8",
"ts-node": "10.9.2",
"typescript": "5.4.5",
"vite": "5.2.9",
"vite": "5.2.12",
"vite-plugin-cesium": "1.2.22",
"vitest": "1.5.0"
"vitest": "1.6.0"
},
"dependencies": {
"@ant-design/compatible": "5.1.2",
Expand Down
4 changes: 2 additions & 2 deletions web/vite.config.ts → web/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import cesium from "vite-plugin-cesium";
import { configDefaults } from "vitest/config";

// https://vitejs.dev/config/
export default defineConfig({
export default defineConfig(() => ({
server: {
port: 3000,
open: true,
Expand Down Expand Up @@ -52,7 +52,7 @@ export default defineConfig({
reporter: ["text", "json", "lcov"],
},
},
});
}));

function serverHeaders(): Plugin {
return {
Expand Down
Loading
Loading