This repository has been archived by the owner on Oct 9, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove global require setting for AMD sfx
- Loading branch information
a8f9891
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trying to think of a use case where you would need this.
Say you have a SFX bundle with
foo
andbar
.foo
wants to async requirebar
:The SystemJS micro loader has registered
foo
andbar
. In this case, you would want the micro loader to providewindow.require
?a8f9891
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The micro-loader doesn't support dynamic requires at all anymore so I think the only valid use case is a sync AMD require of the form
require('x')
where the require was not taken from the callback, but that's not something that is expected as standard.a8f9891
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense. In that case, big 👍 😄