Skip to content

feat(@angular-devkit/build-angular): export @angular/platform-server symbols in server bundle#23866

Merged
clydin merged 1 commit intoangular:mainfrom
alan-agius4:platform-exports
Sep 20, 2022
Merged

feat(@angular-devkit/build-angular): export @angular/platform-server symbols in server bundle#23866
clydin merged 1 commit intoangular:mainfrom
alan-agius4:platform-exports

Conversation

@alan-agius4
Copy link
Collaborator

@alan-agius4 alan-agius4 commented Sep 7, 2022

This commit adds an internal file to export needed symbols from @angular/platform-server when building a server bundle. This is needed. This is needed so that DI tokens can be referenced and set at runtime outside of the bundle.

Also, it adds a migration to remove these exports from the users files as otherwise an export collision would occur due to the same symbol being exported multiple times.

@alan-agius4 alan-agius4 removed the request for review from clydin September 7, 2022 08:27
@alan-agius4 alan-agius4 reopened this Sep 15, 2022
@alan-agius4 alan-agius4 marked this pull request as ready for review September 15, 2022 09:40
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: major This PR is targeted for the next major release labels Sep 15, 2022
@alan-agius4 alan-agius4 changed the title fix(@angular-devkit/build-angular): export @angular/platform-server symbols in server bundle feat(@angular-devkit/build-angular): export @angular/platform-server symbols in server bundle Sep 15, 2022
@alan-agius4 alan-agius4 reopened this Sep 15, 2022
@alan-agius4 alan-agius4 added this to the v15 Feature Freeze milestone Sep 16, 2022
@alan-agius4 alan-agius4 removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 19, 2022
@alan-agius4 alan-agius4 force-pushed the platform-exports branch 4 times, most recently from e863fde to a32f64b Compare September 19, 2022 13:18
@alan-agius4 alan-agius4 requested a review from clydin September 19, 2022 13:41
@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 19, 2022
…` symbols in server bundle

This commit adds an internal file to export needed symbols from `@angular/platform-server` when building a server bundle. This is needed.  This is needed so that DI tokens can be referenced and set at runtime outside of the bundle.

Also, it adds a migration to remove these exports from the users files as otherwise an export collision would occur due to the same symbol being exported multiple times.
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Sep 19, 2022
@clydin clydin merged commit 15d3fc6 into angular:main Sep 20, 2022
@alan-agius4 alan-agius4 deleted the platform-exports branch September 20, 2022 14:26
@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 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants