From 0b5959e452c2baf4399e1aa862dc2cac52923f3a Mon Sep 17 00:00:00 2001 From: Martin Date: Mon, 15 Feb 2016 19:58:14 +0100 Subject: [PATCH] fix(demo): including es6-shim and es6-promise --- polyfills.ts | 3 +++ webpack.config.js | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 polyfills.ts diff --git a/polyfills.ts b/polyfills.ts new file mode 100644 index 0000000000..32cdb7dda4 --- /dev/null +++ b/polyfills.ts @@ -0,0 +1,3 @@ +// Polyfills +import 'es6-shim'; +import 'es6-promise'; diff --git a/webpack.config.js b/webpack.config.js index 0a01369475..022e8bea41 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -44,6 +44,7 @@ var config = { }, entry: { + polyfills: 'polyfills', angular2: [ // Angular 2 Deps 'zone.js/dist/zone-microtask', @@ -121,9 +122,9 @@ var config = { new webpack.optimize.DedupePlugin(), new webpack.optimize.OccurenceOrderPlugin(true), new webpack.optimize.CommonsChunkPlugin({ - name: 'angular2', - minChunks: Infinity, - filename: 'angular2.js' + name: 'polyfills', + filename: 'polyfills.js', + minChunks: Infinity }), // static assets new CopyWebpackPlugin([{from: 'demo/favicon.ico', to: 'favicon.ico'}]),