Skip to content

Commit

Permalink
module: set swc transform mode explicitly to 'strip-only'
Browse files Browse the repository at this point in the history
  • Loading branch information
ChALkeR committed Jul 31, 2024
1 parent 49a9ba4 commit 346469c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/modules/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 346469c

Please sign in to comment.