From fd2d857607aad72e0d3d40aafafbc5aa8493e1fc Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Thu, 7 May 2020 15:35:53 -0400 Subject: [PATCH] Fix specifying custom template compiler path. The code that landed initially in 5.0.0 incorrectly used `config/environment.js` for the source of the value. --- lib/ember-addon-main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ember-addon-main.js b/lib/ember-addon-main.js index 42892573..4f329598 100644 --- a/lib/ember-addon-main.js +++ b/lib/ember-addon-main.js @@ -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;