From 89b78f0ad389761b980fe639d44d11ddc30aac45 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 5 Apr 2022 15:43:52 +1000 Subject: [PATCH] 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 Co-authored-by: Amir Zarrinkafsh --- web/package.json | 2 +- web/pnpm-lock.yaml | 26 +++++++++++++------------- web/vite.config.ts | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/web/package.json b/web/package.json index fbc29d76..dc8dacb9 100644 --- a/web/package.json +++ b/web/package.json @@ -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", diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index f06d5059..157a3641 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -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: diff --git a/web/vite.config.ts b/web/vite.config.ts index f90a4874..0bdaca44 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -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;