diff --git a/ember_debug/object-inspector.js b/ember_debug/object-inspector.js index 0df9a8b13c..c1d54fc8dd 100644 --- a/ember_debug/object-inspector.js +++ b/ember_debug/object-inspector.js @@ -33,7 +33,7 @@ let tagValue, tagValidate, track, tagForProperty; try { // Try to load the most recent library - let GlimmerValidator = Ember.__loader.require('@glimmer/validator'); + let GlimmerValidator = EmberLoader.require('@glimmer/validator'); tagValue = GlimmerValidator.value || GlimmerValidator.valueForTag; tagValidate = GlimmerValidator.validate || GlimmerValidator.validateTag; diff --git a/ember_debug/utils/ember/loader.js b/ember_debug/utils/ember/loader.js index 08b752d350..413f346966 100644 --- a/ember_debug/utils/ember/loader.js +++ b/ember_debug/utils/ember/loader.js @@ -5,7 +5,10 @@ let module; try { module = Ember.__loader; } catch { - module = requireModule; + module = { + require, + requireModule, + }; } export function emberSafeRequire(id) {