Skip to content
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

fix(@angular-devkit/build-angular): wrap ES5 differential loading bundles #18232

Merged
merged 1 commit into from
Jul 13, 2020

Conversation

clydin
Copy link
Member

@clydin clydin commented Jul 12, 2020

This change ensures that classic (ES5) script's top-level function helpers do not get overwritten by other scripts top-level functions that happen to have the same name. This is not an issue when using module script types because each module has its own scope.

Closes angular/angular#36521

@clydin clydin added the target: patch This PR is targeted for the next patch release label Jul 12, 2020
…dles

This change ensures that classic (ES5) script's top-level function helpers do not get overwritten by other scripts top-level functions that happen to have the same name.  This is not an issue when using module script types because each module has its own scope.
@@ -10,6 +10,7 @@ import { Architect } from '@angular-devkit/architect';
import { PathFragment } from '@angular-devkit/core';
import { browserBuild, createArchitect, host } from '../../test-utils';

// tslint:disable-next-line: no-big-function
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clearly you have written too many tests!

@clydin clydin requested a review from alan-agius4 July 13, 2020 13:35
@clydin clydin merged commit bcb41e3 into angular:master Jul 13, 2020
@clydin clydin deleted the wrap-dl-iife branch July 13, 2020 16:16
@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 Aug 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

runtime translation with lazy loading and ES5 (differential loading) is buggy
4 participants