fetch
steal.hooks.fetch
A loader hook that fetches a module, usually from an http url, returning the source of that module.
fetch(load)
Parameters
-
load
{load}
The load object associated with this module.
A loader hook that fetches a module, usually from an http url, returning the source of that module.
{load}
The load object associated with this module.
The fetch is used to retrieve a module's source, so that it can be passed on to the next loader hook translate.
Here's an example of a loader override that stores module source in
localStorage
: