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.
It's something like this. I can't remember why I have plugma listed in both packages and overrides. They might not both be needed.
This is a pain though, because you have to work out the relative paths.
The other approach is to store your Vite app in the same folder as your other library.
Something like this:
local-lib/ pnpm-workspace.yml vite-app/ # I usually call it sandbox if it's just for testing