From a37cc7d63535562269f4d56e896acbf7cc12002f Mon Sep 17 00:00:00 2001 From: Jonathan <395137+Grafikart@users.noreply.github.com> Date: Wed, 11 Oct 2023 09:44:03 +0200 Subject: [PATCH] Remove meta env (#713) Co-authored-by: Quentin Ruhier --- package.json | 2 +- src/utils/env.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index edd4a0140..8de8fd512 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@inseefr/lunatic", - "version": "2.6.3-rc.1", + "version": "2.7.0-rc.1", "workersVersion": "0.2.5-experimental", "description": "Library of questionnaire components", "repository": { diff --git a/src/utils/env.ts b/src/utils/env.ts index 347ab75d7..8c9315d7d 100644 --- a/src/utils/env.ts +++ b/src/utils/env.ts @@ -1,4 +1,4 @@ export function isTestEnv(): boolean { - const meta = import.meta as any; - return meta && meta?.env ? (import.meta as any).env.MODE === 'test' : false; + // @ts-ignore + return import.meta.env.MODE === 'test'; }