juice-shop
72 строки · 2.8 Кб
1/*
2* Copyright (c) 2014-2024 Bjoern Kimminich & the OWASP Juice Shop contributors.
3* SPDX-License-Identifier: MIT
4*/
5
6/**
7* This file includes polyfills needed by Angular and is loaded before the app.
8* You can add your own extra polyfills to this file.
9*
10* This file is divided into 2 sections:
11* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
12* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
13* file.
14*
15* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
16* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
17* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
18*
19* Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
20*/
21
22/** *************************************************************************************************
23* BROWSER POLYFILLS
24*/
25
26/** IE9, IE10 and IE11 requires all of the following polyfills. */
27// import 'core-js/es6/symbol';
28// import 'core-js/es6/object';
29// import 'core-js/es6/function';
30// import 'core-js/es6/parse-int';
31// import 'core-js/es6/parse-float';
32// import 'core-js/es6/number';
33// import 'core-js/es6/math';
34// import 'core-js/es6/string';
35// import 'core-js/es6/date';
36// import 'core-js/es6/array';
37// import 'core-js/es6/regexp';
38// import 'core-js/es6/map';
39// import 'core-js/es6/weak-map';
40// import 'core-js/es6/set';
41
42/** IE10 and IE11 requires the following for the Reflect API. */
43// import 'core-js/es6/reflect';
44
45/** Evergreen browsers require these. */
46// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
47import 'core-js/es/reflect'
48
49/**
50* By default, zone.js will patch all possible macroTask and DomEvents
51* user can disable parts of macroTask/DomEvents patch by setting following flags
52*/
53
54// (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
55// (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
56// (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
57
58/*
59* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
60* with the following flag, it will bypass `zone.js` patch for IE/Edge
61*/
62// (window as any).__Zone_enable_cross_context_check = true;
63
64/** *************************************************************************************************
65* Zone JS is required by default for Angular itself.
66*/
67import 'zone.js' // Included with Angular CLI.
68(window as any).global = window
69
70/** *************************************************************************************************
71* APPLICATION IMPORTS
72*/
73