Skip to content

feat: integrate vite devtools#226

Draft
arashsheyda wants to merge 6 commits into
mainfrom
feat/vite-devtools-renderer
Draft

feat: integrate vite devtools#226
arashsheyda wants to merge 6 commits into
mainfrom
feat/vite-devtools-renderer

Conversation

@arashsheyda
Copy link
Copy Markdown
Collaborator

@arashsheyda arashsheyda commented May 31, 2026

🔗 Linked issue

closes #9

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

this PR adds comark/devtools to vite devtools and fixes the React component to work in client-side environments

Vite DevTools Integration

  • Vue: included automatically via @comark/vue/vite so user only need to register the Vite Devtools
  • React / Svelte / HTML — add manually:
import { comarkDevtools } from 'comark/vite'
plugins: [DevTools(), react(), comarkDevtools()]

Other changes

while working on the devtools I found a bug with react example while vite devtools enabled:

App.tsx:13 <Comark> is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.

which the fix resulted in <Comark> component being no longer async, works in both client and server contexts

Screen.Recording.2026-05-31.at.1.00.26.AM.mov

📝 Checklist

  • I have linked an issue or discussion.
  • I have run pnpm verify and it passes.
  • I have updated the documentation accordingly.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
comark Ready Ready Preview May 31, 2026 7:07am
comark-json-render Ready Ready Preview May 31, 2026 7:07am
comark-nextjs Error Error May 31, 2026 7:07am
comark-nuxt Ready Ready Preview May 31, 2026 7:07am
comark-svelte Ready Ready Preview May 31, 2026 7:07am
comark-sveltekit Ready Ready Preview May 31, 2026 7:07am
comark-twoslash Ready Ready Preview May 31, 2026 7:07am
comark-vue Ready Ready Preview May 31, 2026 7:07am

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.

[Feature Request]: devtools tab for nuxt integration

1 participant