build(deps): update dependency vite to v2.9.1 (#3079)

* build(deps): update dependency vite to v2.9.1

* fix(web): load correct vite env vars

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
pull/3120/head
renovate[bot] 2022-04-05 15:43:52 +10:00 committed by GitHub
parent 004490c7b1
commit 89b78f0ad3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 15 deletions

View File

@ -155,7 +155,7 @@
"prettier": "2.6.2",
"react-test-renderer": "18.0.0",
"typescript": "4.6.3",
"vite": "2.8.6",
"vite": "2.9.1",
"vite-plugin-eslint": "1.3.0",
"vite-plugin-istanbul": "2.5.1",
"vite-plugin-svgr": "1.1.0",

View File

@ -52,7 +52,7 @@ specifiers:
react-router-dom: 6.3.0
react-test-renderer: 18.0.0
typescript: 4.6.3
vite: 2.8.6
vite: 2.9.1
vite-plugin-eslint: 1.3.0
vite-plugin-istanbul: 2.5.1
vite-plugin-svgr: 1.1.0
@ -114,11 +114,11 @@ devDependencies:
prettier: 2.6.2
react-test-renderer: 18.0.0_react@18.0.0
typescript: 4.6.3
vite: 2.8.6
vite-plugin-eslint: 1.3.0_vite@2.8.6
vite: 2.9.1
vite-plugin-eslint: 1.3.0_vite@2.9.1
vite-plugin-istanbul: 2.5.1
vite-plugin-svgr: 1.1.0_vite@2.8.6
vite-tsconfig-paths: 3.4.1_vite@2.8.6
vite-plugin-svgr: 1.1.0_vite@2.9.1
vite-tsconfig-paths: 3.4.1_vite@2.9.1
packages:
@ -7949,7 +7949,7 @@ packages:
spdx-expression-parse: 3.0.1
dev: true
/vite-plugin-eslint/1.3.0_vite@2.8.6:
/vite-plugin-eslint/1.3.0_vite@2.9.1:
resolution: {integrity: sha512-ng6liBWegj6bovfJVGsXXL2XeQR3xnqe4UsnwTE8rbsYTnAaiLfaZK3rruGAyiwCBPbBc2IEED6T7sus5NJfEw==}
peerDependencies:
vite: ^2.0.0
@ -7957,7 +7957,7 @@ packages:
'@rollup/pluginutils': 4.2.0
eslint: 7.32.0
rollup: 2.70.1
vite: 2.8.6
vite: 2.9.1
transitivePeerDependencies:
- supports-color
dev: true
@ -7972,18 +7972,18 @@ packages:
- supports-color
dev: true
/vite-plugin-svgr/1.1.0_vite@2.8.6:
/vite-plugin-svgr/1.1.0_vite@2.9.1:
resolution: {integrity: sha512-fuwfRpUoMBX3wr47JVt4b4xpMYujONDGyDwZFE4JuohVTJovJ4VCNeAb3//mzdRxdzeHEfJuedpoHTvwPsqisA==}
peerDependencies:
vite: ^2.6.0
dependencies:
'@svgr/core': 6.2.1
vite: 2.8.6
vite: 2.9.1
transitivePeerDependencies:
- supports-color
dev: true
/vite-tsconfig-paths/3.4.1_vite@2.8.6:
/vite-tsconfig-paths/3.4.1_vite@2.9.1:
resolution: {integrity: sha512-SgK3/pnTuJ3i+gMSAWLR6VCPSw26bnxawrmXGvCDjJgk8MAQgmbCrFrAzfwbwZBXSqSuvWEuX04Wt73qJKx8fQ==}
peerDependencies:
vite: '>2.0.0-0'
@ -7992,13 +7992,13 @@ packages:
globrex: 0.1.2
recrawl-sync: 2.2.2
tsconfig-paths: 3.14.1
vite: 2.8.6
vite: 2.9.1
transitivePeerDependencies:
- supports-color
dev: true
/vite/2.8.6:
resolution: {integrity: sha512-e4H0QpludOVKkmOsRyqQ7LTcMUDF3mcgyNU4lmi0B5JUbe0ZxeBBl8VoZ8Y6Rfn9eFKYtdXNPcYK97ZwH+K2ug==}
/vite/2.9.1:
resolution: {integrity: sha512-vSlsSdOYGcYEJfkQ/NeLXgnRv5zZfpAsdztkIrs7AZHV8RCMZQkwjo4DS5BnrYTqoWqLoUe1Cah4aVO4oNNqCQ==}
engines: {node: '>=12.2.0'}
hasBin: true
peerDependencies:

View File

@ -7,7 +7,7 @@ import tsconfigPaths from "vite-tsconfig-paths";
// @ts-ignore
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, "env");
const env = loadEnv(mode, ".");
const isCoverage = process.env.VITE_COVERAGE === "true";
const sourcemap = isCoverage ? "inline" : undefined;