Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

target ES2022

Steven Tey7bfe740a31f1
diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.json
index 654bd7eba5..0ab9d7064f 100644
--- a/apps/web/tsconfig.json
+++ b/apps/web/tsconfig.json
@@ -1,7 +1,7 @@
{
"extends": "tsconfig/nextjs.json",
"compilerOptions": {
- "target": "es5",
+ "target": "ES2022",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
diff --git a/packages/tsconfig/nextjs.json b/packages/tsconfig/nextjs.json
index 75e2dd33ee..f72a0901ae 100644
--- a/packages/tsconfig/nextjs.json
+++ b/packages/tsconfig/nextjs.json
@@ -1,20 +1,20 @@
{
- "$schema": "https://json.schemastore.org/tsconfig",
- "display": "Next.js",
- "extends": "./base.json",
- "compilerOptions": {
- "plugins": [{ "name": "next" }],
- "allowJs": true,
- "declaration": false,
- "declarationMap": false,
- "incremental": true,
- "jsx": "preserve",
- "lib": ["dom", "dom.iterable", "esnext"],
- "module": "esnext",
- "resolveJsonModule": true,
- "strict": false,
- "target": "es5"
- },
- "include": ["src", "next-env.d.ts"],
- "exclude": ["node_modules"]
-}
\ No newline at end of file
+ "$schema": "https://json.schemastore.org/tsconfig",
+ "display": "Next.js",
+ "extends": "./base.json",
+ "compilerOptions": {
+ "plugins": [{ "name": "next" }],
+ "allowJs": true,
+ "declaration": false,
+ "declarationMap": false,
+ "incremental": true,
+ "jsx": "preserve",
+ "lib": ["dom", "dom.iterable", "esnext"],
+ "module": "esnext",
+ "resolveJsonModule": true,
+ "strict": false,
+ "target": "ES2022"
+ },
+ "include": ["src", "next-env.d.ts"],
+ "exclude": ["node_modules"]
+}
diff --git a/packages/tsconfig/react-library.json b/packages/tsconfig/react-library.json
index 5d6d666060..cd58e372f9 100644
--- a/packages/tsconfig/react-library.json
+++ b/packages/tsconfig/react-library.json
@@ -5,7 +5,7 @@
"compilerOptions": {
"lib": ["ES2015", "DOM"],
"module": "ESNext",
- "target": "ES6",
+ "target": "ES2022",
"jsx": "react-jsx",
"noEmit": true
}