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 missing babel polyfill in vendor tree #430

Merged
merged 1 commit into from
Dec 22, 2021

Conversation

jaswilli
Copy link
Contributor

I believe this is a fix for the mystery of the missing babel polyfill as reported in #429. It seems as though the culprit was the introduction of cacheKeyForTree() in #421.

Since our treeForVendor() conditionally adds in the babel polyfill we need to consider that condition when generating the cache key for vendor.

I verified this fixes the simple reproduction (new Ember app with the polyfill enabled in ember-cli-build) and it also fixes this same issue on a big app I have at work.

This is the first time I've gone under the covers of ember-cli-babel so I'm happy to be educated if there's a better strategy for fixing this.

@EstesE
Copy link

EstesE commented Dec 20, 2021

Thanks, this worked for me.

@jamescdavis
Copy link
Contributor

This fixes things for me as well. #421 was definitely the breaking change. @rwjblue, can we push this through?

@rwjblue
Copy link
Member

rwjblue commented Dec 22, 2021

Sorry for slow response here y'all, thank you @jaswilli for workin' up a fix!!

@rwjblue rwjblue added the bug label Dec 22, 2021
@rwjblue rwjblue merged commit f752681 into emberjs:master Dec 22, 2021
@jaswilli jaswilli deleted the caching-is-fun branch December 22, 2021 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants