From e68a16326fa7b2a352d0b2af631dd689d9f3225e Mon Sep 17 00:00:00 2001 From: Sean Johnson Date: Thu, 28 Jul 2016 23:13:48 -0400 Subject: [PATCH] Update "temporary" stop-gap for supporting nested addons When upgrading to 2.7.0, I'm seeing the "sourcemaps not defined" issue again. It seems that the previous stopgap wasn't as future-proof as we'd like it to be. :) I've switched from duck-typing against `app.import` to `app.options`, since that's the accessor that fails every time this bug resurfaces. --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 12f0038..0182763 100644 --- a/lib/index.js +++ b/lib/index.js @@ -14,7 +14,7 @@ module.exports = { // Stop-gap measure to support another addon // consuming this addon. https://github.com/ef4/ember-browserify/issues/29 - if (typeof app.import !== 'function' && app.app) { + if (!app.options && app.app && app.app.options) { app = app.app; }