[sidecar] Improve CommonJS parity and dependency diagnostics #10

Open
opened 2026-06-02 08:21:14 +00:00 by steve · 0 comments
Owner

Source: Lapis plugin module loading plan, 2026-06-02.

Goal: make Electron sidecar CommonJS behavior predictable during the dual-format rollout without blocking renderer ESM.

Scope:

  • Decide and document bundled-only sidecar v1 versus preloaded local module graph support.
  • If local graph support is chosen, preload local require() dependencies before executing the CommonJS wrapper.
  • Keep hosted sidecar dependencies intentionally narrow: lapis and @lapis-notes/api.
  • Improve missing dependency diagnostics for sidecar plugins.
  • Add tests for the hosted facade and local graph behavior or clear bundle-required errors.

Acceptance:

  • Bundled desktop.cjs sidecar plugins load reliably.
  • Unsupported sidecar imports fail with clear messages.
  • Sidecar does not expose renderer UI/Svelte/CodeMirror-view modules.
Source: Lapis plugin module loading plan, 2026-06-02. Goal: make Electron sidecar CommonJS behavior predictable during the dual-format rollout without blocking renderer ESM. Scope: - Decide and document bundled-only sidecar v1 versus preloaded local module graph support. - If local graph support is chosen, preload local require() dependencies before executing the CommonJS wrapper. - Keep hosted sidecar dependencies intentionally narrow: lapis and @lapis-notes/api. - Improve missing dependency diagnostics for sidecar plugins. - Add tests for the hosted facade and local graph behavior or clear bundle-required errors. Acceptance: - Bundled desktop.cjs sidecar plugins load reliably. - Unsupported sidecar imports fail with clear messages. - Sidecar does not expose renderer UI/Svelte/CodeMirror-view modules.
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lapis-notes/plugin-registry#10
No description provided.