From b9dfc87589a955442d504efd01b953239c434b2d Mon Sep 17 00:00:00 2001 From: Jason Williams Date: Fri, 17 Dec 2021 22:35:23 -0700 Subject: [PATCH] Fix missing babel polyfill in vendor tree --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index e89dc3d7..7bf7bab8 100644 --- a/index.js +++ b/index.js @@ -275,7 +275,9 @@ module.exports = { }, cacheKeyForTree(treeType) { - if (treeType === 'addon') { + if (treeType === 'vendor') { + return cacheKeyForTree('vendor', this, [this._shouldIncludePolyfill()]); + } else if (treeType === 'addon') { let isRootBabel = this.parent === this.project; let shouldIncludeHelpers = isRootBabel && _shouldIncludeHelpers(this._getAppOptions(), this);