Make @codemirror/state a peerdependency #28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "make-state-peer-dep"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It should only be installed once, so it's wrong to configure it as a dependency.
package managers like pnpm will install the dependency under autocomplete so you can end up with multiple installations of state which breaks codemirror
That's a pnpm issue. npm (and yarn for the most part) will properly deduplicate depdencies. Peer dependencies have their own issue and gotchas, and aren't a usable solution for a dependency like this.
Pull request closed