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
Bundle budgets incorrectly erroring when differential loading is enabled #19849
Comments
I just wanted to add a note that Nx is also in use here:
Additionally, the following "target": "es5",
"module": "es2020" |
I did some digging into this today and the root cause is in the any budget calculator, |
…ifferential loading enabled Fixes angular#19849
…ifferential loading enabled Fixes angular#19849
…ifferential loading enabled Fixes #19849
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?
Not sure
Description
When enabling differential loading on our app the bundle budgets started failing. You can see the issue in the terminal output here. Note how the reported file size is
3.73mb
(this is correct) but the budget is erroring and says the outputted file is4.88 MB
. This was working ok with just an es2015 target, but as soon as we changed the browserslist file to support IE11 the budget started to error.🔬 Minimal Reproduction
It seems to be caused by the
anyScript
budgetAnd enabling differential loading
If that's not enough to reproduce please let me know and I can try and make a repo on github, just didn't want to spend the time doing it in case a maintainer knows where the issue might be straight away 😄
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: