Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not assume global variables are assigned to
self
.
`requirejs` is a global variable (provided by [loader.js here](https://github.com/ember-cli/loader.js/blob/v4.7.0/lib/loader/loader.js#L1)). The prior code made the assumption that all global variables are assigned to `self`/`window`, but this is _only_ true in some circumstances. For example, when the entire bundle is evaluated within an IIFE `self.requirejs` is undefined.
- Loading branch information