fix modern transpiler when disabled

This commit is contained in:
Nacho Codoñer
2025-05-27 17:25:45 +02:00
parent d94dffa38e
commit 8dff09f447

View File

@@ -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) ||