Created
December 14, 2017 12:51
-
-
Save mentorkadriu/54c92a0c7cac0e594a6c3e9bb27b187b to your computer and use it in GitHub Desktop.
Addition polyfills added for mean.io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TODO(gdi2290): switch to DLLs | |
/** | |
* Polyfills | |
*/ | |
import 'ie-shim'; | |
/* import 'core-js/es6'; */ | |
/** | |
* Added parts of es6 which are necessary for your project or your browser support requirements. | |
*/ | |
import 'core-js/es6/symbol'; | |
import 'core-js/es6/object'; | |
import 'core-js/es6/function'; | |
import 'core-js/es6/parse-int'; | |
import 'core-js/es6/parse-float'; | |
import 'core-js/es6/number'; | |
import 'core-js/es6/math'; | |
import 'core-js/es6/string'; | |
import 'core-js/es6/date'; | |
import 'core-js/es6/array'; | |
import 'core-js/es6/regexp'; | |
import 'core-js/es6/map'; | |
import 'core-js/es6/set'; | |
import 'core-js/es6/weak-map'; | |
import 'core-js/es6/weak-set'; | |
import 'core-js/es6/typed'; | |
import 'core-js/es6/reflect'; | |
/** IE10 and IE11 requires the following for NgClass support on SVG elements */ | |
import 'classlist.js'; // Run `npm install --save classlist.js`. | |
/** | |
* See issue https://github.com/AngularClass/angular2-webpack-starter/issues/709 | |
*/ | |
// import 'core-js/es6/promise'; | |
import 'core-js/es7/reflect'; | |
import 'zone.js/dist/zone'; | |
import 'reflect-metadata'; | |
/** | |
* Date, currency, decimal and percent pipes. | |
* Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10 | |
*/ | |
import 'intl'; // Run `npm install --save intl`. | |
import 'web-animations-js'; | |
if ('production' === ENV) { | |
// Production | |
} else { | |
// Development | |
Error.stackTraceLimit = Infinity; | |
/* tslint:disable no-var-requires */ | |
require('zone.js/dist/long-stack-trace-zone'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment