You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I plan on changing this to use anypromise, which lets people override the Promise implementation if they want, and use the native (or polyfilled) Promise otherwise.
Replace the Promise shim with `any-promise` to give the caller more
control over which Promise implementation is used.
Fixes#4, fixes#6.
BREAKING CHANGE: No longer ships with the hardcoded `es6-promise`
dependency. If you don't register a preferred Promise implementation,
`any-promise` will attempt to use `global.Promise` or otherwise throws.
Please read the `any-promise` documentation to determine how to register
your preferred Promise implementation.
Alternatively, you may use your bundler's alias option to replace the
`any-promise` module with your preferred implementation.
Webpack:
```javascript
{
resolve: {
alias: {
'any-promise': 'es6-promise'
}
}
}
```
Browserify:
With the `aliasify` transform.
```javascript
{
aliases: {
'any-promise': 'es6-promise'
}
}
```
This depends on es6-promise. If you already have loaded a promise polyfill or the browser already supports them es6-promise will still be loaded.
The text was updated successfully, but these errors were encountered: