From 346469cc01df0f7054123149800176583558fd3b Mon Sep 17 00:00:00 2001 From: Nikita Skovoroda Date: Wed, 31 Jul 2024 14:20:41 +0300 Subject: [PATCH] module: set swc transform mode explicitly to 'strip-only' --- lib/internal/modules/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/modules/helpers.js b/lib/internal/modules/helpers.js index 2eae0f6cd3f78f..d466cec51cfbf7 100644 --- a/lib/internal/modules/helpers.js +++ b/lib/internal/modules/helpers.js @@ -310,7 +310,7 @@ function lazyLoadTSParser() { function tsParse(source) { if (!source || typeof source !== 'string') { return; } const transformSync = lazyLoadTSParser(); - const { code } = transformSync(source); + const { code } = transformSync(source, { mode: 'strip-only' }); return code; }