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 + } }