Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Aug 31, 2023
1 parent c6f0b47 commit a7b835c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ember_debug/object-inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 4 additions & 1 deletion ember_debug/utils/ember/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ let module;
try {
module = Ember.__loader;
} catch {
module = requireModule;
module = {
require,
requireModule,
};
}

export function emberSafeRequire(id) {
Expand Down

0 comments on commit a7b835c

Please sign in to comment.