mirror of
https://github.com/fancive/obsidian-parallel-reader.git
synced 2026-07-22 06:53:43 +00:00
build: align tsconfig target and esbuild target to ES2022
Both were ES2020 while lib was already ES2022, creating a mismatch that could allow using APIs esbuild wouldn't polyfill. Obsidian 1.4+ runs Electron 25+ which fully supports ES2022. Change-Id: I732538280146c6a91cf52cc52ef124f6a364dc5e
This commit is contained in:
parent
552dd41109
commit
f9e33d4c5d
2 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ const context = await esbuild.context({
|
|||
bundle: true,
|
||||
platform: 'node',
|
||||
format: 'cjs',
|
||||
target: 'es2020',
|
||||
target: 'es2022',
|
||||
external,
|
||||
sourcemap: production ? false : 'inline',
|
||||
treeShaking: true,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"target": "ES2020",
|
||||
"target": "ES2022",
|
||||
"module": "CommonJS",
|
||||
"moduleResolution": "Node",
|
||||
"lib": ["ES2022", "DOM"],
|
||||
|
|
|
|||
Loading…
Reference in a new issue