Skip to content

Commit

Permalink
chore(web): update vite and fix vite.config (#1170)
Browse files Browse the repository at this point in the history
update vite + config
  • Loading branch information
nourbalaha authored Jun 4, 2024
1 parent b681fa3 commit aeea160
Show file tree
Hide file tree
Showing 3 changed files with 1,458 additions and 911 deletions.
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

0 comments on commit aeea160

Please sign in to comment.