diff --git a/template/client/promise-polyfill.js b/template/client/promise-polyfill.js index 382b0d8..c01180b 100644 --- a/template/client/promise-polyfill.js +++ b/template/client/promise-polyfill.js @@ -1 +1,2 @@ -window.Promise = require('pinkie-promise') +import Promise from 'promise-polyfill' +window.Promise = window.Promise || Promise diff --git a/template/package.json b/template/package.json index eaf8ad7..bf9eb4d 100644 --- a/template/package.json +++ b/template/package.json @@ -14,7 +14,7 @@ "author": "{{ author }}", "license": "MIT", "dependencies": { - "pinkie-promise": "^2.0.1", + "promise-polyfill": "^6.0.2", "vue": "^2.1.0", "vue-router": "^2.0.0", "vuex": "^2.0.0",