Skip to content

refactor: remove preact dependency from widgets module#532

Open
charlieforward9 wants to merge 1 commit intofeat/renderer-agnostic-cluster-widgetfrom
cr/remove-preact
Open

refactor: remove preact dependency from widgets module#532
charlieforward9 wants to merge 1 commit intofeat/renderer-agnostic-cluster-widgetfrom
cr/remove-preact

Conversation

@charlieforward9
Copy link
Collaborator

Replace all preact JSX/rendering with vanilla DOM APIs. The module
no longer requires preact as a dependency, fixing build failures
when consumed via Vite source aliases without preact installed.

  • Convert 6 .tsx files to .ts (no more JSX)
  • Replace preact Component/render/cloneElement/toChildArray/Fragment
    with plain DOM element creation and manipulation
  • Introduce OverlayItemData interface (coordinates + createElement callback)
    as the framework-agnostic replacement for VNode
  • Delete _deprecate/ directory (unused copies of widgets)
  • Remove jsxImportSource: "preact" from tsconfig.json

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Replace all preact JSX/rendering with vanilla DOM APIs. The module
no longer requires preact as a dependency, fixing build failures
when consumed via Vite source aliases without preact installed.

- Convert 6 .tsx files to .ts (no more JSX)
- Replace preact Component/render/cloneElement/toChildArray/Fragment
  with plain DOM element creation and manipulation
- Introduce OverlayItemData interface (coordinates + createElement callback)
  as the framework-agnostic replacement for VNode
- Delete _deprecate/ directory (unused copies of widgets)
- Remove jsxImportSource: "preact" from tsconfig.json

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant