Open mansona opened 2 years ago
So turns out I was able to find the part of the code that is relevant (tis a bit hard since it's all implemented in a babel transform, but also doesn't have a dedicated file like the other macros)
Essentially I'm wondering if we want to do some sort of detection that we're in Node at this spot and make it "unwrap" the second default at this point 🤔
At this point I don't even know what the expected behaviour is supposed to be and what point in the process is going wrong. I've just discovered the fastboot fixtures and I'm going to see if I can recreate using importSync in there and see if I can confirm if it's a fastboot issue or not 👍
Hey folks 👋
I'm tracking down why one of my Empress projects wasn't working in the intended Fastboot (prember) build, I tracked it down to the change that I recently made to ember-get-config that now makes use of
importSync
under the hood.The problem is a simple one, but a bit too complex for me to even know where to start looking for a root cause or solution. Essentially I'm using
importSync
to get the parent app's config module and for some reason in a Fastboot environment it requires me to goconfig.default.default
to actually get to the config that is exported.I have a workaround that will work for now in ember-get-config https://github.com/mansona/ember-get-config/pull/44 but I would prefer that I don't keep this hack in there because I assume I'm not the only one that will be experiencing this issue.
Any guidance on debugging this issue would be super appreciated 👍