Skip to content

Conversation

@alan-agius4
Copy link
Collaborator

This commit adds the option to run build-optimizer on the server bundles.

This is needed as in some cases, there can be restrictions on the size of server bundles that can be executed. One of these cases is CloudFlare workers
which by default does not work with an ng-new application due to the size of the
bundle mainly due to the retention of the @angular/compiler.

//cc @AndrewKushnir

@alan-agius4 alan-agius4 force-pushed the build-optimizer-server-build branch from b17f4d1 to bb65324 Compare April 26, 2023 13:20
@alan-agius4 alan-agius4 requested a review from clydin April 26, 2023 13:54
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: rc This PR is targeted for the next release-candidate labels Apr 26, 2023
…izer on server bundles

This commit adds the option to run build-optimizer on the server bundles.

This is needed as in some cases, there can be restrictions on the size of
server bundles that can be executed. One of these cases is CloudFlare workers
 which by default does not work with an `ng-new` application due to the size of the
 bundle mainly due to the retention of the `@angular/compiler`.
@alan-agius4 alan-agius4 force-pushed the build-optimizer-server-build branch from bb65324 to d4a7787 Compare April 26, 2023 15:28
@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 Apr 26, 2023
@angular-robot angular-robot bot merged commit a416b4e into angular:main Apr 26, 2023
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this pull request Apr 27, 2023
…izer on dev server builds

In angular#25070 we turned on `buildOptimizer` by default for server builds. This causes existing projects development builds to always run build-optimizer. This migration will set `buildOptimizer` to false, when `optimization` is disabled.
angular-robot bot pushed a commit that referenced this pull request Apr 27, 2023
…izer on dev server builds

In #25070 we turned on `buildOptimizer` by default for server builds. This causes existing projects development builds to always run build-optimizer. This migration will set `buildOptimizer` to false, when `optimization` is disabled.
angular-robot bot pushed a commit that referenced this pull request Apr 27, 2023
…izer on dev server builds

In #25070 we turned on `buildOptimizer` by default for server builds. This causes existing projects development builds to always run build-optimizer. This migration will set `buildOptimizer` to false, when `optimization` is disabled.

(cherry picked from commit 873272f)
@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 May 27, 2023
@alan-agius4 alan-agius4 deleted the build-optimizer-server-build branch June 9, 2023 15:03
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: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants