These are not even all of my core pain points.
Is local-first development is really like this? Or can be attributed simply to a "skill-issue".
I haven't even touched other stuff like:
- CommonJS vs. ESM is still a predominant issue.
ts-configis diabolical.- building with different alternative node runtimes like
bun,denoor Cloudflarewrangleris challenging. - the most stable env. for me has been
pnpm+vite. - for lib development, what has been more stable and fast for me was this combo
bun+vite.
One of the issues you could be hitting is pnpm caching the module and not Vite.
I often experience a lot of issues when symlinking modules, i.e.
pnpm link. What might work better is to set up a workspace in your Vite app. The workspace should then reference the other module using a relative or absolute URL. I can't remember exactly how I set it up but you could experiment. I'll share my workspace file in another comment.