add ng2-webpack-config

This commit is contained in:
Oleksandr Telnov
2016-09-15 10:22:43 +03:00
parent 0e7e397f7d
commit cdc76cced0
29 changed files with 305 additions and 428 deletions

28
demo/polyfills.ts Normal file
View File

@@ -0,0 +1,28 @@
// Polyfills
// (these modules are what are in 'angular2/bundles/angular2-polyfills' so don't use that here)
// import 'ie-shim'; // Internet Explorer
// import 'es6-shim';
// import 'es6-promise';
// import 'es7-reflect-metadata';
// Prefer CoreJS over the polyfills above
import 'core-js/es6';
import 'core-js/es7/reflect';
require('zone.js/dist/zone');
require('reflect-metadata');
// Typescript emit helpers polyfill
import 'ts-helpers';
if ('production' === ENV) {
// Production
} else {
// Development
(Error as any).stackTraceLimit = Infinity;
require('zone.js/dist/long-stack-trace-zone');
}