Skip to content

Commit bc377dc

Browse files
committed
fix(skeleton): fix Promise polyfill on IE
Load promise-polyfill before loading aurelia-bootstrapper. The polyfill can be removed if user don't need to support IE. closes #1079
1 parent f572f42 commit bc377dc

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

lib/dependencies.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
"opn": "^5.4.0",
8383
"postcss-loader": "^3.0.0",
8484
"postcss-url": "^8.0.0",
85+
"promise-polyfill": "^8.1.0",
8586
"protractor": "^5.4.2",
8687
"regenerator-runtime": "0.13.2",
8788
"requirejs": "^2.3.6",

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

skeleton/cli-bundler/aurelia_project/aurelia.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
{
145145
"name": "vendor-bundle.js",
146146
"prepend": [
147+
"node_modules/promise-polyfill/dist/polyfill.min.js",
147148
// @if feat.requirejs
148149
"node_modules/requirejs/require.js"
149150
// @endif

skeleton/common/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"minimatch": "",
2626
"through2": "",
2727
"vinyl-fs": "",
28+
"promise-polyfill": "",
2829

2930
// @if feat.babel
3031
"regenerator-runtime": "",

skeleton/webpack/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ module.exports = ({ production, server, extractCss, coverage, analyze, karma } =
287287
$: 'jquery',
288288
jQuery: 'jquery',
289289
// @endif
290+
'Promise': ['promise-polyfill', 'default']
290291
}),
291292
new ModuleDependenciesPlugin({
292293
'aurelia-testing': ['./compile-spy', './view-spy']

0 commit comments

Comments
 (0)