Skip to content

Conversation

@dhcdata
Copy link

@dhcdata dhcdata commented Feb 6, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant