Skip to content

Commit 09c46e6

Browse files
author
Nicolò Maria Mezzopera
authored
Merge pull request #387 from bezany/faq/plugins
Small marks about create plugins from #363
2 parents 7122afd + 067fac2 commit 09c46e6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/faq/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,11 @@ module.exports = {
6767
}
6868
}
6969
```
70+
71+
## How create plugin?
72+
73+
* vue2-leaflet exposes utility that you can leverage findRealParent and propsBinder
74+
* everything should be initialised in the mounted lifecycle hook
75+
* remember to set leaflet as a peerDependecy
76+
* rollup is the best library bundler so you can leverage ESM ( you can check how we do it here in the main repo )
77+
* check this repo or one of the other plugins for inspiration ( for example leaflet-markercluster )

0 commit comments

Comments
 (0)