Skip to content

Commit

Permalink
Fix issues with ts target > ES2021
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed May 11, 2024
1 parent f411eb4 commit af9fa49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/lib/SvelteNodeViewRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ type SvelteComponentRaw = typeof SvelteComponent<Partial<NodeViewProps>>;

class SvelteNodeView extends NodeView<SvelteComponentRaw, Editor, SvelteNodeViewRendererOptions> {
declare renderer: SvelteRenderer;

contentDOMElement!: HTMLElement | null;
declare contentDOMElement: HTMLElement | null;

override mount(): void {
const Component = this.component;
Expand Down
7 changes: 2 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit af9fa49

Please sign in to comment.