Skip to content

Commit

Permalink
Merge pull request #939 from ember-fastboot/embroider
Browse files Browse the repository at this point in the history
Fix embroider-optimised
  • Loading branch information
mansona authored May 2, 2024
2 parents ae9302d + c8748a7 commit f8ee13a
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
(function() {
if (typeof FastBoot === 'undefined') {
var current = document.getElementById('fastboot-body-start');
var _Ember = require.has('ember') ? require('ember').default : Ember;

var _Ember = require.has('ember') ? require('ember').default : window.Ember;

if (current && !_Ember) {
console.error(`Experimental render mode rehydrate isn't working because it couldn't find Ember via AMD or global.
See https://github.com/ember-fastboot/ember-cli-fastboot/issues/938 for the current state of the fix.`);
return;
}

if (
current &&
Expand Down

0 comments on commit f8ee13a

Please sign in to comment.