universal-cli icon indicating copy to clipboard operation
universal-cli copied to clipboard

Merge module

Open dhcdata opened this issue 8 years ago • 0 comments

Having separate files for node and browser bootstrapped modules requires duplication of common builds. IMO the more common use case is to minimal differences between the server rendered and client app regarding included declarations, etc.

This PR uses a single app.module that exports an AppModule and an AppNodeModule. Both are created by using the spread operator to merge a common module definition to a unique definition for each platform.

dhcdata avatar Feb 06 '17 00:02 dhcdata