Skip to content

Conversation

@alan-agius4
Copy link
Collaborator

@alan-agius4 alan-agius4 commented Sep 4, 2019

feat(@angular-devkit/build-angular): enable bundleDependencies by default for server builder

BREAKING CHANGE: bundleDependencies default value has been changed from none to all. This will result in all of node_modules to be bundled in the final server bundle.

Under Ivy, if users choose to opt-out from bundling dependencies they will need to run NGCC binary manually to make non-bundled node_modules compatible with Ivy.

feat(@schematics/angular): add export to renderModule in server main file

This will be used by universal and app-shell to render the server module

fix(@angular-devkit/build-angular): make app-shell work with Ivy
Fixes #15383

feat(@schematics/angular): add export to renderModuleFactory in server main file

feat(@schematics/angular): add migration to add missing exports in main server file

Update the main.server.ts file by adding exports to renderModule and renderModuleFactory which are now required for Universal and App-Shell for Ivy and bundleDependencies.

@alan-agius4 alan-agius4 added the target: major This PR is targeted for the next major release label Sep 4, 2019
@alan-agius4 alan-agius4 marked this pull request as ready for review September 4, 2019 13:47
…ault for server builder

BREAKING CHANGE: bundleDependencies default value has been changed from none to all. This will result in all of node_modules to be bundled in the final server bundle.

Under Ivy, if users choose to opt-out from bundling dependencies they will need to run NGCC binary manually to make non-bundled node_modules compatible with Ivy.
…n file

This will be used by universal and app-shell to render the server module
…ver main file

This is to reduce the steps for users when opting-out of ivy
…in server file

Update the `main.server.ts` file by adding exports to `renderModule` and `renderModuleFactory` which are now required for Universal and App-Shell for Ivy and `bundleDependencies`.
@kyliau kyliau merged commit 600e5d0 into angular:master Sep 10, 2019
@alan-agius4 alan-agius4 deleted the app-shell branch September 10, 2019 17:12
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App Shell builder fails with Ivy

5 participants