node-cqrs-domain icon indicating copy to clipboard operation
node-cqrs-domain copied to clipboard

Support of default export?

Open IRT-fbachmann opened this issue 8 years ago • 2 comments

Could you add support of default exports in the structureLoader? Sth. like this:

if (required.default) {
    required = required.default;
}

IRT-fbachmann avatar Aug 21 '17 17:08 IRT-fbachmann

Feel free to submit a PR ;-) PS. but there is no official support in node right now, right?

adrai avatar Aug 22 '17 06:08 adrai

No, there is no official node support. However, in my structure I liked to have some supporting information associated to the commands/events. I'd like to have that in the same file, which is easier using default export plus extra exports... PR's coming :)

IRT-fbachmann avatar Aug 24 '17 06:08 IRT-fbachmann