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);