digital-fabric/modulation

Make multiple exports additive

noteflakes opened this issue · 0 comments

Currently multiple calls to export or export_default have an undefined behaviour. We need to
be able to support multiple calls to export as well as future stuff like export_from_receiver.

To do this we'll:

  • Put args passed to export and export_XXX in a list say @deferred_exports, with location info for each call.
  • Perform export after module has loaded.
  • Test additive exports.
  • Raise error if export and export_default are mixed