question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configure the promise implementation

See original GitHub issue

I 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:closed
  • Created 9 years ago
  • Comments:32 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
NervosaXcommented, Jun 9, 2015

+1 for allowing me to change the promise implementation.

2reactions
bboydflocommented, Mar 17, 2017

@CrisLi I solved the issue by checking if Promise attribute is in the global scope, otherwise, window.Promise =BluebirdPromise;

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found