Skip to content

Commit 5820908

Browse files
author
Anthony Gore
committed
Polyfilling promise
1 parent 2c994cf commit 5820908

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@
3131
"axios": "^0.15.3",
3232
"babel-core": "~6.26.0",
3333
"babel-loader": "~6.4.1",
34+
"babel-plugin-es6-promise": "~1.1.1",
3435
"babel-plugin-transform-es2015-destructuring": "~6.23.0",
3536
"babel-plugin-transform-runtime": "~6.23.0",
3637
"babel-preset-env": "~1.6.1",
3738
"cross-env": "~3.0.0",
3839
"css-loader": "~0.25.0",
40+
"es6-promise": "~4.2.4",
3941
"extract-text-webpack-plugin": "~2.1.2",
4042
"file-loader": "~0.9.0",
4143
"js-object-pretty-print": "~0.2.0",

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var baseConfig = {
1818
loader: 'babel-loader',
1919
options: {
2020
"presets": [ [ "env" ] ],
21-
"plugins": [ "transform-es2015-destructuring", "transform-runtime" ]
21+
"plugins": [ "transform-es2015-destructuring", "transform-runtime", "es6-promise" ]
2222
}
2323
}],
2424
exclude: /node_modules/
@@ -107,4 +107,4 @@ let targets = [ 'web', 'node' ].map((target) => {
107107
return obj;
108108
});
109109

110-
module.exports = targets;
110+
module.exports = targets;

0 commit comments

Comments
 (0)