The dynamic import plugin now recursively imports dependencies, so now it's just like a normal ('static') import. This unlocks a handy use case:
The dynamic import plugin now recursively imports dependencies, so now it's just like a normal ('static') import. This unlocks a handy use case: - Lemmy.World
As was noted on the plugin page, this was on the roadmap, but not yet supported. I’ve added support now thanks to a prod from @wthit56 so you can treat it just like you would a normal ‘static’ import. One nice use case that this properly/robustly unlocks is the situation where you e.g. have a plugin that you’ve made, and you want to import the comments plugin so people can chat about your plugin and ask questions, but you don’t want to cause all importers of your plugin to automatically get the comments plugin as a dependency. If you just dynamically import the plugin in your HTML panel, then importers of your plugin won’t get the comments plugin as a dependency. Example: https://perchance.org/import-only-in-html-panel-no-dependency-example#edit [https://perchance.org/import-only-in-html-panel-no-dependency-example#edit]