diff --git a/lib/commands/new/buildsystems/cli/index.js b/lib/commands/new/buildsystems/cli/index.js index efc3f98b9..099cb3d43 100644 --- a/lib/commands/new/buildsystems/cli/index.js +++ b/lib/commands/new/buildsystems/cli/index.js @@ -62,7 +62,8 @@ module.exports = function(project, options) { { 'path': 'node_modules/aurelia-cli/lib/resources/scripts/configure-bluebird.js', 'env': 'dev' - } + }, + 'node_modules/@babel/polyfill/browser.js' ], dependencies: [ // only needs packages not explicitly depend diff --git a/lib/resources/src/main-webpack.js b/lib/resources/src/main-webpack.js index 890000ea5..27a57a169 100644 --- a/lib/resources/src/main-webpack.js +++ b/lib/resources/src/main-webpack.js @@ -1,3 +1,4 @@ +import '@babel/polyfill'; import environment from './environment'; import {PLATFORM} from 'aurelia-pal'; import * as Bluebird from 'bluebird';