diff --git a/lib/dependencies.json b/lib/dependencies.json index 7ed0d4442..71545117d 100644 --- a/lib/dependencies.json +++ b/lib/dependencies.json @@ -82,6 +82,7 @@ "opn": "^5.4.0", "postcss-loader": "^3.0.0", "postcss-url": "^8.0.0", + "promise-polyfill": "^8.1.0", "protractor": "^5.4.2", "regenerator-runtime": "0.13.2", "requirejs": "^2.3.6", diff --git a/package-lock.json b/package-lock.json index f62c0f970..a43e43704 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "aurelia-cli", - "version": "1.0.0-beta.14", + "version": "1.0.0-beta.15", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/skeleton/cli-bundler/aurelia_project/aurelia.json b/skeleton/cli-bundler/aurelia_project/aurelia.json index f541ddea3..8f8587fc9 100644 --- a/skeleton/cli-bundler/aurelia_project/aurelia.json +++ b/skeleton/cli-bundler/aurelia_project/aurelia.json @@ -144,6 +144,7 @@ { "name": "vendor-bundle.js", "prepend": [ + "node_modules/promise-polyfill/dist/polyfill.min.js", // @if feat.requirejs "node_modules/requirejs/require.js" // @endif diff --git a/skeleton/common/package.json b/skeleton/common/package.json index a40606ff4..fb5c7fcf9 100644 --- a/skeleton/common/package.json +++ b/skeleton/common/package.json @@ -25,6 +25,7 @@ "minimatch": "", "through2": "", "vinyl-fs": "", + "promise-polyfill": "", // @if feat.babel "regenerator-runtime": "", diff --git a/skeleton/webpack/webpack.config.js b/skeleton/webpack/webpack.config.js index f279d00b0..c90fade98 100644 --- a/skeleton/webpack/webpack.config.js +++ b/skeleton/webpack/webpack.config.js @@ -287,6 +287,7 @@ module.exports = ({ production, server, extractCss, coverage, analyze, karma } = $: 'jquery', jQuery: 'jquery', // @endif + 'Promise': ['promise-polyfill', 'default'] }), new ModuleDependenciesPlugin({ 'aurelia-testing': ['./compile-spy', './view-spy']