Skip to content

Open Infrastructure Map, a view of infrastructure data in OpenStreetMap

Target ES2022

Russ Garrett62982c5ddf94
diff --git a/web/tsconfig.json b/web/tsconfig.json
index a28eb6c..86c8941 100644
--- a/web/tsconfig.json
+++ b/web/tsconfig.json
@@ -1,9 +1,9 @@
{
"compilerOptions": {
- "target": "ES2020",
+ "target": "ES2022",
"useDefineForClassFields": true,
"module": "es2022",
- "lib": ["ES2020", "DOM"],
+ "lib": ["ES2022", "DOM"],
"allowJs": false,
/* Bundler mode */
diff --git a/web/vite.config.ts b/web/vite.config.ts
index a60a9d2..05c443c 100644
--- a/web/vite.config.ts
+++ b/web/vite.config.ts
@@ -4,6 +4,7 @@ import i18nextLoader from 'vite-plugin-i18next-loader'
export default defineConfig({
build: {
+ target: 'es2022',
outDir: './dist',
chunkSizeWarningLimit: 1000,
rollupOptions: {