diff --git a/tsconfig.app.json b/tsconfig.app.json index 0767c8f546..3ab6a55481 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -11,6 +11,20 @@ "src/**/__tests__/*" ], "compilerOptions": { + "lib": [ + // Target ES2020 to align with Vite. + // + // Support for newer versions of language built-ins are + // left for the users to include, because that would require: + // - either the project doesn't need to support older versions of browsers; + // - or the project has properly included the necessary polyfills. + "ES2020", + + "DOM", + "DOM.Iterable" + + // No `ScriptHost` because Vue 3 dropped support for IE + ], "composite": true, "baseUrl": ".", "paths": {