Skip to content

Commit

Permalink
Use es2020 for TypeScript modules
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb531 committed Jun 7, 2024
1 parent cb5cd49 commit 70a730b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ export default inputPaths.map((inputPath) => {
},
},
],
plugins: [commonjs(), esbuild({ minify: true })],
plugins: [commonjs(), esbuild({ minify: true, target: "es2020" })],
};
});
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"compilerOptions": {
"target": "es2017",
"lib": ["es2017", "dom", "dom.iterable"],
"target": "es2020",
"lib": ["es2020", "dom", "dom.iterable"],
"allowJs": true,
"checkJs": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"module": "es2020",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
Expand Down

0 comments on commit 70a730b

Please sign in to comment.