Use own package name instead of direct class
Opened this issue · 2 comments
Current Behavior
This plugin currently makes Firestore
under the window
property directly.
<js-module src="www/firestore.js" name="Firestore">
<clobbers target="Firestore"/>
</js-module>
There is a possibility to conflict with other plugins.
Expected Behavior
One suggestion is to create own package name.
For example, my plugin creates plugin.google.maps
in order to prevent conflicting with others.
You know what even Google makes own package name firebase.firestore.Firestore
.
Would you like to create your plugin move to plugin.firebase.firestore.Firestore
?
( If you use plugin.firesbase.firestore
, developers can understand to just add plugin
. )
This does seem like a good idea.
I have been developing own library for firebase realtime database
these days.
I will come back for this library in two weeks.
I aware current JS API implementation of this library has several problems to archive the plugin.firebase.firestore.Firestore
.
Actually recreating a new library from scratch is faster than modifying this library.
I will invite you to my current work project in couple of days :) Just a moment please.