File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ module.exports = {
3030 let babelVersion = hasBabel && babel . pkg . version ;
3131
3232 let ember = this . project . addons . find ( a => a . name === 'ember-source' ) ;
33- let emberVersion = ember !== undefined && ember . pkg . version ;
33+ let hasEmberSource = ember !== undefined ;
34+ let emberVersion = hasEmberSource && ember . pkg . version ;
3435
3536 // using this.project.emberCLIVersion() allows us to avoid issues when `npm
3637 // link` is used; if this addon were linked and we did something like
@@ -43,7 +44,7 @@ module.exports = {
4344
4445 // once a polyfill is written, we will need to update this logic to check
4546 // for _either_ `[email protected] ` or the polyfill 46- let hasValidEmberVersion = semver . gte ( emberVersion , '3.13.0' ) ;
47+ let hasValidEmberVersion = hasEmberSource && semver . gte ( emberVersion , '3.13.0' ) ;
4748
4849 this . _cachedShouldColocateTemplates =
4950 hasValidEmberVersion && hasValidBabelVersion && hasValidEmberCLIVersion ;
You can’t perform that action at this time.
0 commit comments