Configure the promise implementation
See original GitHub issueI wish to provide my own Promise implementation (core-js), so I do not want browserify do bundle the es6-promise module. Is there a simple way to configure axios not to require this module?
// Polyfill ES6 Promise if needed
require('es6-promise').polyfill();
Issue Analytics
- State:
- Created 9 years ago
- Comments:32 (9 by maintainers)
Top Results From Across the Web
Implementing a simple Promise in Javascript | by Zhi Sun
We will start with how to create and consume a Promise. Then, we will implement a basic version and iterate on it to...
Read more >How To Create Your Own Implementation Of JavaScript ...
How To Create Your Own Implementation Of JavaScript Promises. Watch later. Share. Copy link. Info. Shopping. Tap to unmute.
Read more >Build a JavaScript Promise | Skilled.dev
In this lesson, you will learn JavaScript promises by building a JavaScript promise implementation from scratch. Your promise will be declared exactly like ......
Read more >Exploring Promises by implementing them • Deep JavaScript
The Promise implementation is the class ToyPromise . In order to be easier to understand, it doesn't completely match the API. But it...
Read more >Promise - JavaScript - MDN Web Docs
The Promise object represents the eventual completion (or failure) of an asynchronous operation and its resulting value.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1 for allowing me to change the promise implementation.
@CrisLi I solved the issue by checking if Promise attribute is in the global scope, otherwise, window.Promise =BluebirdPromise;