Skip to content

Commit

Permalink
feat: allow custom TypeScript target
Browse files Browse the repository at this point in the history
This change allows the TypeScript compiler target to be customized. If no
target is specified, it defaults to ES2020. This provides more flexibility
for users who may want to target different JavaScript versions.
  • Loading branch information
ryoppippi committed Jun 10, 2024
1 parent 3bed170 commit d1e2d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/unplugin-typia/src/core/typia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async function getProgramAndSource(
const tsSource = ts.createSourceFile(
id,
source,
ts.ScriptTarget.ES2020,
compilerOptions.target ?? ts.ScriptTarget.ES2020,
);
const host = ts.createCompilerHost(compilerOptions);

Expand Down

0 comments on commit d1e2d5a

Please sign in to comment.