Skip to content

Commit f015291

Browse files
author
Robert Jackson
authored
Merge pull request #550 from ember-cli/fix-config
2 parents 02b50ba + 8c394d3 commit f015291

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/ember-addon-main.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,12 @@ module.exports = {
187187
},
188188

189189
templateCompilerPath() {
190-
let config = this.projectConfig();
190+
let app = this._findHost();
191191
let templateCompilerPath =
192-
config['ember-cli-htmlbars'] && config['ember-cli-htmlbars'].templateCompilerPath;
192+
app &&
193+
app.options &&
194+
app.options['ember-cli-htmlbars'] &&
195+
app.options['ember-cli-htmlbars'].templateCompilerPath;
193196

194197
if (templateCompilerPath) {
195198
return templateCompilerPath;

0 commit comments

Comments
 (0)