From 2fee467d6c988d6dcc8371bac27bd6717d34c7ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nacho=20Codo=C3=B1er?= Date: Wed, 30 Apr 2025 13:36:04 +0200 Subject: [PATCH] fix normalization --- packages/babel-compiler/babel-compiler.js | 4 +--- tools/cli/commands.js | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/babel-compiler/babel-compiler.js b/packages/babel-compiler/babel-compiler.js index 0a592c3ec6..a8e3a0c539 100644 --- a/packages/babel-compiler/babel-compiler.js +++ b/packages/babel-compiler/babel-compiler.js @@ -296,9 +296,7 @@ BCp.processOneFileForTarget = function (inputFile, source) { const isLegacyWebArch = arch.includes('legacy'); const config = lastModifiedMeteorConfig?.modern?.transpiler; - const hasModernTranspiler = - lastModifiedMeteorConfig?.modern?.transpiler !== false || - lastModifiedMeteorConfig?.modern === true; + const hasModernTranspiler = lastModifiedMeteorConfig?.modern?.transpiler !== false; const shouldSkipSwc = !hasModernTranspiler || (isAppCode && config?.excludeApp === true) || diff --git a/tools/cli/commands.js b/tools/cli/commands.js index 3bb3c72de4..9c5a95b1eb 100644 --- a/tools/cli/commands.js +++ b/tools/cli/commands.js @@ -287,7 +287,7 @@ function isModernArchsOnlyEnabled(appDir) { } const packageJsonFile = files.readFile(packageJsonPath, 'utf8'); const packageJson = JSON.parse(packageJsonFile); - return normalizeModern(packageJson?.meteor?.modern).webArchOnly === true; + return normalizeModern(packageJson?.meteor?.modern).webArchOnly !== false; } function filterWebArchs(webArchs, excludeArchsOption, appDir, options) {