1 |
|
2 | const Bluebird = require('bluebird')
|
3 | Bluebird.config({
|
4 | cancellation: true,
|
5 | longStackTraces: true,
|
6 | warnings: {
|
7 | wForgottenReturn: false
|
8 | },
|
9 | monitoring: true
|
10 | })
|
11 |
|
12 | const g = global as any
|
13 |
|
14 | Promise = Bluebird
|
15 | g.Promise = Bluebird
|
16 |
|
17 | /**
|
18 | * Replace es6-promise with bluebird
|
19 | */
|
20 | require('babel-runtime/core-js/promise').default = require('bluebird')
|
21 |
|
22 |
|
23 |
|