A Vite plugin for Logseq plugin development that fixes HMR issues by providing a valid index.html and reloading plugins when updates fall outside the UI framework's HMR boundary. Current stable version is 1.1.2, last updated in April 2022. It is a niche tool specifically for Logseq plugin developers using Vite. Differentiators: it handles the unique development workflow for Logseq plugins, solving HMR mismatches that standard Vite setups cannot.
npm install vite-plugin-logseqVerified import paths — ran on the pinned version, not inferred.
Shows how to add the logseqPlugin to a Vite config to enable HMR for Logseq plugin development.
Ensure logseqPlugin() is the last plugin in the plugins array.
If you need automatic open, configure via plugin options or use Vite's open option.
Consider alternative if issues arise; not actively maintained.
Ensure your Vite root is set to the Logseq plugin directory containing an index.html.
Use default import: import logseqPlugin from 'vite-plugin-logseq'
No dependency data recorded yet.