Skip to content

Commit 2fe31f5

Browse files
committed
feat(esnext): use babel polyfill to enable async/await syntax for esnext projects
closes #959
1 parent 9d4bbbe commit 2fe31f5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/commands/new/buildsystems/cli/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ module.exports = function(project, options) {
6262
{
6363
'path': 'node_modules/aurelia-cli/lib/resources/scripts/configure-bluebird.js',
6464
'env': 'dev'
65-
}
65+
},
66+
'node_modules/@babel/polyfill/browser.js'
6667
],
6768
dependencies: [
6869
// only needs packages not explicitly depend

lib/resources/src/main-webpack.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import '@babel/polyfill';
12
import environment from './environment';
23
import {PLATFORM} from 'aurelia-pal';
34
import * as Bluebird from 'bluebird';

0 commit comments

Comments
 (0)