Docs: peerDependencies in plugins guide (#5142)

If I some plugin include leaflet to dependencies and I have local version leaflet, then I have two version - leaflet from plugin and my.
This commit is contained in:
Semen Levenson 2016-11-24 14:19:48 +03:00 committed by Iván Sánchez Ortega
parent 633182a836
commit 188362098b

View File

@ -148,7 +148,7 @@ Here is an example of a `package.json` file for a Leaflet plugin.
"main": "my-plugin.js",
"author": "You",
"license": "IST",
"dependencies": {
"peerDependencies": {
"leaflet": "^1.0.0"
}
}