From 8dff09f447f20a7152f11dbf8bd735b93d71ada4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nacho=20Codo=C3=B1er?= Date: Tue, 27 May 2025 17:25:45 +0200 Subject: [PATCH] fix modern transpiler when disabled --- packages/babel-compiler/babel-compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/babel-compiler/babel-compiler.js b/packages/babel-compiler/babel-compiler.js index bfc45c5758..27a5122bc2 100644 --- a/packages/babel-compiler/babel-compiler.js +++ b/packages/babel-compiler/babel-compiler.js @@ -329,7 +329,7 @@ BCp.processOneFileForTarget = function (inputFile, source) { const isLegacyWebArch = arch.includes('legacy'); const config = lastModifiedMeteorConfig?.modern?.transpiler; - const hasModernTranspiler = lastModifiedMeteorConfig?.modern?.transpiler !== false; + const hasModernTranspiler = config != null && config !== false; const shouldSkipSwc = !hasModernTranspiler || (isAppCode && config?.excludeApp === true) ||