From af9fa497c8f1426a28224dd470bbf5e05478db3c Mon Sep 17 00:00:00 2001 From: Sibiraj <20282546+sibiraj-s@users.noreply.github.com> Date: Sat, 11 May 2024 10:22:53 +0530 Subject: [PATCH] Fix issues with ts target > ES2021 --- src/lib/SvelteNodeViewRenderer.ts | 3 +-- tsconfig.json | 7 ++----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/lib/SvelteNodeViewRenderer.ts b/src/lib/SvelteNodeViewRenderer.ts index 8fa002f..65d3060 100644 --- a/src/lib/SvelteNodeViewRenderer.ts +++ b/src/lib/SvelteNodeViewRenderer.ts @@ -24,8 +24,7 @@ type SvelteComponentRaw = typeof SvelteComponent>; class SvelteNodeView extends NodeView { declare renderer: SvelteRenderer; - - contentDOMElement!: HTMLElement | null; + declare contentDOMElement: HTMLElement | null; override mount(): void { const Component = this.component; diff --git a/tsconfig.json b/tsconfig.json index 2543d43..5c56cee 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,9 +8,6 @@ "resolveJsonModule": true, "skipLibCheck": true, "sourceMap": true, - "strict": true, - "module": "NodeNext", - "moduleResolution": "NodeNext", - "target": "ES2021", // ES2022 or later breaks SvelteNodeViewRenderer - }, + "strict": true + } }