-
-
Notifications
You must be signed in to change notification settings - Fork 149
Open
Description
"peerDependencies": {
"@babel/runtime": ">=7.11.0",
"@codemirror/state": ">=6.0.0",
"@codemirror/theme-one-dark": ">=6.0.0",
"@codemirror/view": ">=6.0.0",
"codemirror": ">=6.0.0",
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"dependencies": {
"@babel/runtime": "^7.18.6",
"@codemirror/commands": "^6.1.0",
"@codemirror/state": "^6.1.1",
"@codemirror/theme-one-dark": "^6.0.0",
"@uiw/codemirror-extensions-basic-setup": "4.23.10",
"codemirror": "^6.0.0"
},
This is the dependency declaration I saw. I found that everything in @codemirror/view
is exported in @uiw/react-codemirror
, so I can use it directly without needing to install @codemirror/view
myself, which is great.
But when I want to use something from @codemirror/commands
, it's not exported in @uiw/react-codemirror
, so I need to install @codemirror/commands
myself. If the versions are inconsistent, will this cause duplicate packaging? I'm confused about why @codemirror
packages need to be declared in dependencies. Can someone help explain this? Thank you.
Metadata
Metadata
Assignees
Labels
No labels