-
Notifications
You must be signed in to change notification settings - Fork 12k
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
8.3.x ES5 build broken for spread operator on set #15673
Comments
@readme42, can you please provide the full code snippet that is needed to generate the error? Thanks. |
@alan-agius4 sure - will deliver in the next hours. |
@alan-agius4 Here we go. You can find the repo here: https://github.com/readme42/repro-angular-cli83-es5-15673 Just clone it and run The ES2015 build shows:
Ths ES5 build shows:
|
…pliance This ensures that the ES5 bundles operate consistently with the ES2015+ bundles. Fixes angular#15673
…pliance This ensures that the ES5 bundles operate consistently with the ES2015+ bundles. Fixes angular#15673
…pliance This ensures that the ES5 bundles operate consistently with the ES2015+ bundles. Fixes angular#15673
…pliance This ensures that the ES5 bundles operate consistently with the ES2015+ bundles. Fixes angular#15673
…pliance This ensures that the ES5 bundles operate consistently with the ES2015+ bundles. Fixes #15673
…pliance This ensures that the ES5 bundles operate consistently with the ES2015+ bundles. Fixes #15673
The payload size increase in the ES5 bundles is (at least partially) expected, due to fixing some down-leveling corner cases. Related CLI issue: angular/angular-cli#15673
The payload size increase in the ES5 bundles is (at least partially) expected, due to fixing some down-leveling corner cases. Related CLI issue: angular/angular-cli#15673
The payload size increase in the ES5 bundles is (at least partially) expected, due to fixing some down-leveling corner cases. Related CLI issue: angular/angular-cli#15673
The payload size increase in the ES5 bundles is (at least partially) expected, due to fixing some down-leveling corner cases. Related CLI issue: angular/angular-cli#15673
The payload size increase in the ES5 bundles is (at least partially) expected, due to fixing some down-leveling corner cases. Related CLI issue: angular/angular-cli#15673 PR Close #32980
The payload size increase in the ES5 bundles is (at least partially) expected, due to fixing some down-leveling corner cases. Related CLI issue: angular/angular-cli#15673 PR Close angular#32980
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
No, its broken since the optimized creation of es5 out of es2015 builds were introduced in 8.3. In 8.2.x, when both builds were created on their own, everything was fine.
Description
Since updating
angular/cli
to 8.3.x it turns our that our ES5 builds are broken - exceptions are thrown during runtime.What I found out so far:
ES2015 builds are fine.
ES5 builds, created with
NG_BUILD_DIFFERENTIAL_FULL=true
are fine.ES5 builds, created without
NG_BUILD_DIFFERENTIAL_FULL=true
are broken.It turns out, that the following line creates
undefined
in es5 builds whereas it creates an array of strings in es2015 builds:Happens in any browser in which you load the es5 build.
🔬 Minimal Reproduction / 🔥 Exception or Error
As its quite some effort due to the size to extract it and you maybe alreadyknow what and where to fix it, I will create a test repo when you really need it.
Just drop a comment in this case.
Edit: You can find the repo here: https://github.com/readme42/repro-angular-cli83-es5-15673
🌍 Your Environment
Angular Version:
The text was updated successfully, but these errors were encountered: