build(deps): update dependency vite to v3 (#3703)

* build(deps): update dependency vite to v3

* fix(web): adjust vite v3 server settings

* build(deps): update dependency @vitejs/plugin-react to v2

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
pull/3728/head
renovate[bot] 2022-07-21 09:43:34 +10:00 committed by GitHub
parent 082c96626e
commit fb3db60c7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 1244 additions and 1515 deletions

View File

@ -1,4 +1,3 @@
VITE_HMR_PORT=8080
VITE_LOGO_OVERRIDE=false VITE_LOGO_OVERRIDE=false
VITE_PUBLIC_URL="" VITE_PUBLIC_URL=""
VITE_DUO_SELF_ENROLLMENT=true VITE_DUO_SELF_ENROLLMENT=true

View File

@ -154,7 +154,7 @@
"@types/zxcvbn": "4.4.1", "@types/zxcvbn": "4.4.1",
"@typescript-eslint/eslint-plugin": "5.30.7", "@typescript-eslint/eslint-plugin": "5.30.7",
"@typescript-eslint/parser": "5.30.7", "@typescript-eslint/parser": "5.30.7",
"@vitejs/plugin-react": "1.3.2", "@vitejs/plugin-react": "2.0.0",
"esbuild": "0.14.49", "esbuild": "0.14.49",
"esbuild-jest": "0.5.0", "esbuild-jest": "0.5.0",
"eslint": "8.20.0", "eslint": "8.20.0",
@ -175,7 +175,7 @@
"prettier": "2.7.1", "prettier": "2.7.1",
"react-test-renderer": "18.2.0", "react-test-renderer": "18.2.0",
"typescript": "4.7.4", "typescript": "4.7.4",
"vite": "2.9.14", "vite": "3.0.0",
"vite-plugin-eslint": "1.7.0", "vite-plugin-eslint": "1.7.0",
"vite-plugin-istanbul": "2.9.0", "vite-plugin-istanbul": "2.9.0",
"vite-plugin-svgr": "2.2.0", "vite-plugin-svgr": "2.2.0",

File diff suppressed because it is too large Load Diff

View File

@ -55,10 +55,8 @@ export default defineConfig(({ mode }) => {
}, },
}, },
server: { server: {
port: 3000,
open: false, open: false,
hmr: {
clientPort: env.VITE_HMR_PORT || 3000,
},
}, },
plugins: [eslintPlugin({ cache: false }), htmlPlugin(), istanbulPlugin, react(), svgr(), tsconfigPaths()], plugins: [eslintPlugin({ cache: false }), htmlPlugin(), istanbulPlugin, react(), svgr(), tsconfigPaths()],
}; };