bitwarden-estensione-browser/src/app/polyfills.ts

23 lines
614 B
TypeScript
Raw Normal View History

2018-06-08 05:38:17 +02:00
/* tslint:disable */
import 'core-js/es6';
2018-06-06 15:43:28 +02:00
import 'core-js/es7/reflect';
2018-06-08 05:38:17 +02:00
require('zone.js/dist/zone');
2019-02-20 04:00:55 +01:00
// IE11 fix, ref: https://github.com/angular/angular/issues/24769
if (!Element.prototype.matches && (Element.prototype as any).msMatchesSelector) {
Element.prototype.matches = (Element.prototype as any).msMatchesSelector;
}
2018-06-08 05:38:17 +02:00
if (process.env.ENV === 'production') {
// Production
} else {
// Development and test
Error['stackTraceLimit'] = Infinity;
require('zone.js/dist/long-stack-trace-zone');
}
2018-06-06 15:43:28 +02:00
2018-06-08 05:38:17 +02:00
// Other polyfills
require('whatwg-fetch');
require('webcrypto-shim');
/* tslint:enable */