Skip to content

Commit

Permalink
Fix specifying custom template compiler path.
Browse files Browse the repository at this point in the history
The code that landed initially in 5.0.0 incorrectly used
`config/environment.js` for the source of the value.
  • Loading branch information
rwjblue committed May 7, 2020
1 parent 02b50ba commit fd2d857
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/ember-addon-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,11 @@ module.exports = {
},

templateCompilerPath() {
let config = this.projectConfig();
let templateCompilerPath =
config['ember-cli-htmlbars'] && config['ember-cli-htmlbars'].templateCompilerPath;
this.app &&
this.app.options &&
this.app.options['ember-cli-htmlbars'] &&
this.app.options['ember-cli-htmlbars'].templateCompilerPath;

if (templateCompilerPath) {
return templateCompilerPath;
Expand Down

0 comments on commit fd2d857

Please sign in to comment.