In Vector we'd like to limit the search experience to ES6 browsers. Right now we do this via some feature detection but we have to mirror the mw.loader logic.
We use mw.loader.using to load the module, when I set the es6 flag to true, this Promise will be rejected.
The problem here, is we have an intermediate loading state that shows up while the ResourceLoader module loads, so we can't wait for the response to know whether the module loads, we need to know it before we make the call
Please make this method publically accessible so it can be checked prior to loading code.
This is the code I would like to call:
if ( mw.loader.isES6Supported() ){ showLoadingState(); mw.loader.using('vector.search.es6').then( clearLoadingState, clearLoadingState );. }