Skip to content

Commit

Permalink
Merge pull request #20620 from emberjs/cleanup-last-amd
Browse files Browse the repository at this point in the history
[CLEANUP canary] Remove final eager consumption of AMD loader
  • Loading branch information
ef4 committed Jan 4, 2024
2 parents f467389 + f016daf commit 370cf34
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/ember/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,10 @@ namespace Ember {
get define() {
return (globalThis as any).define;
},
// @ts-expect-error These properties don't appear as being defined
registry: typeof requirejs !== 'undefined' ? requirejs.entries : require.entries,
get registry() {
let g = globalThis as any;
return g.requirejs?.entries ?? g.require.entries;
},
};

// ------------------------------------------------------------------------ //
Expand Down

0 comments on commit 370cf34

Please sign in to comment.