From 3a583d50503863f7ac39005ccad044429e556fcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nacho=20Codo=C3=B1er?= Date: Wed, 9 Apr 2025 15:04:22 +0200 Subject: [PATCH] fix ci --- packages/babel-compiler/babel-compiler.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/babel-compiler/babel-compiler.js b/packages/babel-compiler/babel-compiler.js index 6bf6c85fea..d323554201 100644 --- a/packages/babel-compiler/babel-compiler.js +++ b/packages/babel-compiler/babel-compiler.js @@ -35,7 +35,7 @@ function compileWithBabel(source, babelOptions, cacheOptions) { }); } -function compileWithSwc(source, swcOptions, { inputFilePath, features, arch }) { +function compileWithSwc(source, swcOptions = {}, { inputFilePath, features, arch }) { return profile('SWC.compile', function () { // Determine file extension based syntax. const isTypescriptSyntax = inputFilePath.endsWith('.ts') || inputFilePath.endsWith('.tsx'); @@ -127,7 +127,6 @@ let lastModifiedSwcConfig; let lastModifiedSwcConfigTime; BCp.initializeMeteorAppSwcrc = function () { if (!lastModifiedSwcConfig && !fs.existsSync(`${getMeteorAppDir()}/.swcrc`)) { - lastModifiedSwcConfig = {}; return; } const currentLastModifiedConfigTime = fs