Support local plugins in theme #18713
Replies: 6 comments
-
Generally speaking we want our users to build small, re-usable themes but since this has come up multiple times now there is work done on that. It'll be fixed by #15856 |
Beta Was this translation helpful? Give feedback.
-
Not sure if it's the same thing. I'm requesting for theme that can resolve its own local plugins. This way, I can publish this theme and share among projects. On the other hand, the PR is to enable local theme that is exclusive to individual project. |
Beta Was this translation helpful? Give feedback.
-
Enabling this is relatively straight forward. I was thinking about enabling local plugins/themes in themes themselves (in the PR that @LekoArts linked) but it can introduce problems that we don't have sane way of handling right now - because local plugins are not managed by some global repository like npm there is possibility of conflicts, because main identifier we use is plugin name and 2 different themes can use 2 completely different plugins with the same name which will lead to unspecified behaviour. I.e.
those local plugins are specific to their themes, so what should happen if we try to shadow |
Beta Was this translation helpful? Give feedback.
-
Ah okay. The distinction between theme and plugin was a little bit hazy for me but I got it now. Thanks so much for the clarification. Looking forward to it. |
Beta Was this translation helpful? Give feedback.
-
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open! As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing! Thanks for being a part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Thanks again for being part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
I have a set of local plugins that I want to include for every site that I develop. As some of those are super simple plugins, moving each of them to its own package seems to be an overkill and adds unnecessary complexity (i.e managing and publishing etc...)
From #16128 I understand there's potentially some technical roadblock.
Is there a way around this?
Beta Was this translation helpful? Give feedback.
All reactions