Skip to content

fix(@angular-devkit/build-angular): fully optimize script bundles with bundle downleveling #15566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 10, 2019

Conversation

clydin
Copy link
Member

@clydin clydin commented Sep 10, 2019

Script bundles were not being subject to the terser mangle optimizations when using bundle down leveling.
This change also allows terser to perform ECMA 6 level compress and output optimizations on the actual application bundles (non-script bundles) which can provide for further size improvements. Also limits the parsing for optimizations of the script bundles to one step.

Fixes #15489
Supersedes #15507

@clydin clydin added the target: patch This PR is targeted for the next patch release label Sep 10, 2019
@kyliau kyliau added target: major This PR is targeted for the next major release and removed target: patch This PR is targeted for the next patch release labels Sep 10, 2019
@kyliau
Copy link
Contributor

kyliau commented Sep 10, 2019

@clydin could you please resolve the conflict? this PR has been merged to patch.

…h bundle downleveling

This also allows terser to perform ECMA 6 level compress optimizations on the actual application bundles (non-script bundles) which can provide for further size improvements.

Fixes angular#15507
@clydin
Copy link
Member Author

clydin commented Sep 10, 2019

Resolved.

@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.

Angular CLI 8.3.0: scripts.js not minified for prod build
4 participants