node-cqrs-domain
node-cqrs-domain copied to clipboard
Support of default export?
Could you add support of default exports in the structureLoader? Sth. like this:
if (required.default) {
required = required.default;
}
Feel free to submit a PR ;-) PS. but there is no official support in node right now, right?
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 :)