Render all child packages

Hey

I’m looking for a way to extend some functionally via packages.

In short I have a package named loader and one called plugin-test. I want this plugin-test to use functions from the loader package and return a React component which the loader will render. I tried doing this with saving the React Component to the database but that wasn’t really liked by Mongo.

I also tried importing the package import Test from 'meteor/plugin-test' but that wont work since I can’t do circular dependencies in packages.

For what it’s worth I’m making a dashboard which I want to extend via plugins.

What about using api.export in package.js?