Is there a recommended way to create a common 1st ...
# plugins
h
Is there a recommended way to create a common 1st party library that's shared between plugins?
h
How are the plugins distributed? Are they in-repo, or are they packaged and used across multiple repos?
h
In-repo - intended to be used only by a single repo
h
In that case, it’s all just code… You can have multiple plugins import from the same library, and that library can even be one that is also used by your non-plugin code
Is this not working?
h
Oh, you mean I can just create a piece of "utility" code anywhere in the repo and import that from plugins?
I didn't check if it's working or not, but I know for a fact that importing from other plugins works (even though that's probably bad practice) That's why I wanted to ask for the recommended way so I can do things as neatly as possible
h
Yeah, if you just put it in some common location, both plugins can import from there as long as the source roots are sorted out
h
Got it... Thanks!