diff --git a/package-lock.json b/package-lock.json index 916030627..b6460727f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6929,6 +6929,12 @@ "integrity": "sha1-mEcocL8igTL8vdhoEputEsPAKeM=", "dev": true }, + "promise-polyfill": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/promise-polyfill/-/promise-polyfill-8.1.0.tgz", + "integrity": "sha512-OzSf6gcCUQ01byV4BgwyUCswlaQQ6gzXc23aLQWhicvfX9kfsUiUhgt3CCQej8jDnl8/PhGF31JdHX2/MzF3WA==", + "dev": true + }, "proxy-addr": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.4.tgz", diff --git a/package.json b/package.json index e7dc4a52b..d93cba5bd 100644 --- a/package.json +++ b/package.json @@ -129,6 +129,7 @@ "lint-staged": "~7.2.0", "pre-commit": "~1.2.2", "prettier": "~1.13.7", + "promise-polyfill": "~8.1.0", "sinon": "~2.3.6", "source-map-support": "~0.5.6", "style-loader": "~0.20.3", diff --git a/webpack.config.ts b/webpack.config.ts index 5f94947a8..6e48ed123 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -74,14 +74,14 @@ function getEntries() { 'url-search-params-polyfill', 'core-js/fn/map', 'core-js/fn/object/assign', - 'core-js/fn/promise', + 'promise-polyfill', './src/browser/intern.ts' ], remote: [ 'url-search-params-polyfill', 'core-js/fn/map', 'core-js/fn/object/assign', - 'core-js/fn/promise', + 'promise-polyfill', './src/browser/remote.ts' ], config: './src/browser/config.ts'