Skip to content

Commit 33d26cb

Browse files
wip(speed): add compact:true babel option to omit optional newlines and whitespace when generating code
1 parent 9a0281e commit 33d26cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tools.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ export async function transformJSCode(source : string, moduleSourceType : boolea
245245
babelrc: false,
246246
configFile: false,
247247
highlightCode: false,
248+
compact: true, // doc: All optional newlines and whitespace will be omitted when generating code in compact mode.
248249
});
249250

250251
return [ depsList, transformedScript.code ];

0 commit comments

Comments
 (0)