Update ES target from ES6/ES2018 to ES2022

All current Obsidian platforms (Electron desktop, iOS 16+ WKWebView,
Android auto-updating WebView) support ES2022. Aligns both tsconfig
and esbuild targets together.
This commit is contained in:
Gary Ritchie 2026-03-27 09:03:18 -06:00
parent c7d08e9866
commit 358a3d1eb4
No known key found for this signature in database
GPG key ID: A37A622ED6F91DD0
2 changed files with 3 additions and 5 deletions

View file

@ -33,7 +33,7 @@ const context = await esbuild.context({
"@lezer/lr",
...builtinModules],
format: "cjs",
target: "es2018",
target: "es2022",
logLevel: "info",
sourcemap: prod ? false : "inline",
treeShaking: true,

View file

@ -4,7 +4,7 @@
"inlineSourceMap": true,
"inlineSources": true,
"module": "ESNext",
"target": "ES6",
"target": "ES2022",
"allowJs": true,
"noImplicitAny": true,
"noImplicitThis": true,
@ -19,9 +19,7 @@
"useUnknownInCatchVariables": true,
"lib": [
"DOM",
"ES5",
"ES6",
"ES7"
"ES2022"
]
},
"include": [