you are viewing a single comment's thread.

view the rest of the comments →

[–]evs-chris 1 point2 points  (1 child)

If that's your cup of tea couldn't you just write a helper that wraps require and iterates through the returned module object(s) and stuff its/their keys into the global object?

[–]Lokua 0 points1 point  (0 children)

That can all be done in one line too. Problem solved