detect-and-shim
Easy to use asynchronous automatic shims
Installation
npm install -S detect-and-shim
Usage
;
By default, all shims are loaded in parallel.
If some shims should be loaded only after some other shims,
it could be done by defining an array ['shim', [/* shim dependencies */]]
Additionally, you could pass your own shims:
;
All included shims are loaded asynchronously using require.ensure([])
. Custom shims could be loaded asynchronously as well.
List of included shims:
object.assign
promise
promise.finally