From cc3eb445a63fb2dbba39b694190bfd140d933b9c Mon Sep 17 00:00:00 2001 From: "Marco A. Nina Mena" Date: Wed, 9 Sep 2026 17:43:31 -0400 Subject: [PATCH 1/2] Remove Istanbul plugin from Babel configuration --- babel.config.js | 1 - 1 file changed, 1 deletion(-) diff --git a/babel.config.js b/babel.config.js index 19b6771b9..0fd59b8bc 100644 --- a/babel.config.js +++ b/babel.config.js @@ -2,6 +2,5 @@ module.exports = { presets: [ '@vue/cli-plugin-babel/preset', ], - plugins: ['istanbul'], sourceType: 'unambiguous', }; From 818a643761fe0b20a2e6c00ad8ae3577f06dd9f3 Mon Sep 17 00:00:00 2001 From: "Marco A. Nina Mena" Date: Fri, 11 Sep 2026 11:59:08 -0400 Subject: [PATCH 2/2] Enhance Babel configuration to conditionally include Istanbul plugin based on environment --- babel.config.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/babel.config.js b/babel.config.js index 0fd59b8bc..6bc5175af 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,6 +1,12 @@ -module.exports = { - presets: [ - '@vue/cli-plugin-babel/preset', - ], - sourceType: 'unambiguous', +module.exports = (api) => { + const isProd = api.env('production'); + api.cache.using(() => isProd); + + return { + presets: [ + '@vue/cli-plugin-babel/preset', + ], + plugins: isProd ? [] : ['istanbul'], + sourceType: 'unambiguous', + }; };