title: How to replace native promise in browser with bluebird library
body: <p>According to the documentation from babel-loader (<a href="https://github.com/babel/babel-loader" rel="nofollow noreferrer">https://github.com/babel/babel-loader</a>), I have tried the following step:</p>
  
  <ol>
  <li>Create a 'bootstrap.js' file</li>
  <li><p>Add the following line in the file</p>
  
  <pre><code>require('babel-runtime/core-js/promise').default = require('bluebird');
  </code></pre></li>
  <li><p>Import the file in my index.js</p></li>
  </ol>
  
  <p>However, I am still not able to replace the native Promise with bluebird. The reason for doing this is because I do not want to import the Promise library for every file.</p>