Skip to content

Commit

Permalink
Update read-default-tsconfig.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
yeliex authored Mar 4, 2024
1 parent e7e6a12 commit 9c76dac
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/register/read-default-tsconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ function getUseDefineForClassFields(compilerOptions: ts.CompilerOptions, target:
export function tsCompilerOptionsToSwcConfig(options: ts.CompilerOptions, filename: string): Options {
const isJsx = filename.endsWith('.tsx') || filename.endsWith('.jsx') || Boolean(options.jsx)
const target = options.target ?? ts.ScriptTarget.ES2018

return {
module: toModule(options.module ?? ts.ModuleKind.ES2015),
target: toTsTarget(target),
Expand Down

0 comments on commit 9c76dac

Please sign in to comment.