Skip to content

Commit

Permalink
update some options
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Sep 26, 2024
1 parent 21b9ab8 commit aa480bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/transform.bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ function swc(filename, sourceText) {
jsc: {
target: "esnext",
transform: {
treatConstEnumAsEnum: true,
react: {
runtime: 'automatic'
}
}
},
preserveAllComments: false,
}
});
}
Expand All @@ -28,6 +30,7 @@ function babel(filename, sourceText) {
return babelTransform(sourceText, {
filename,
babelrc: false,
comments: false,
presets: [
"@babel/preset-typescript",
["@babel/preset-react", { runtime: 'automatic' }],
Expand Down

0 comments on commit aa480bc

Please sign in to comment.