Skip to content

Commit

Permalink
Use ES2020 Target
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairzx81 committed Jun 17, 2024
1 parent 7ef8e83 commit f224948
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion task/build/esm/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ declare function shell(command: string): Promise<void>
export async function compile(target: string) {
const options = [
`--outDir ${target}`,
'--target ESNext',
'--target ES2020',
'--module ESNext',
'--declaration',
].join(' ')
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"strict": true,
"target": "ESNext",
"module": "ESNext",
"module": "ES2020",
"moduleResolution": "Node",
"baseUrl": ".",
"paths": {
Expand Down

0 comments on commit f224948

Please sign in to comment.