diff --git a/angular.json b/angular.json index 9efc94c09..cb5955a8c 100644 --- a/angular.json +++ b/angular.json @@ -21,7 +21,7 @@ "outputPath": "./dist/releases/koobiq-docs", "index": "apps/docs/src/index.html", "main": "apps/docs/src/main.ts", - "polyfills": "apps/docs/src/polyfills.ts", + "polyfills": ["zone.js"], "tsConfig": "apps/docs/tsconfig.app.json", "assets": [ { diff --git a/apps/docs/src/main.ts b/apps/docs/src/main.ts index d2338c732..0a74d3cc7 100644 --- a/apps/docs/src/main.ts +++ b/apps/docs/src/main.ts @@ -2,7 +2,6 @@ import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/'; import { environment } from './environments/environment'; -import './polyfills'; import { unregisterServiceWorkers } from './unregister-service-workers'; // Unregister all installed service workers and force reload the page if there was diff --git a/apps/docs/src/polyfills.ts b/apps/docs/src/polyfills.ts deleted file mode 100644 index b06700fa7..000000000 --- a/apps/docs/src/polyfills.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file includes polyfills needed by Angular and is loaded before -// the app. You can add your own extra polyfills to this file. -import 'core-js/es/array'; -import 'core-js/es/date'; -import 'core-js/es/function'; -import 'core-js/es/map'; -import 'core-js/es/math'; -import 'core-js/es/number'; -import 'core-js/es/object'; -import 'core-js/es/parse-float'; -import 'core-js/es/parse-int'; -import 'core-js/es/reflect'; -import 'core-js/es/regexp'; -import 'core-js/es/set'; -import 'core-js/es/string'; -import 'core-js/es/symbol'; -import 'zone.js'; diff --git a/apps/docs/tsconfig.app.json b/apps/docs/tsconfig.app.json index 55b42733c..cf7a2955c 100644 --- a/apps/docs/tsconfig.app.json +++ b/apps/docs/tsconfig.app.json @@ -12,8 +12,7 @@ "src/**/*.d.ts" ], "files": [ - "src/main.ts", - "src/polyfills.ts" + "src/main.ts" ], "exclude": [ "src/**/*.spec.ts", diff --git a/package.json b/package.json index c216c7144..0b36380fa 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,6 @@ "@koobiq/date-adapter": "^3.1.2", "@koobiq/date-formatter": "^3.1.2", "@koobiq/icons": "9.1.0", - "core-js": "^3.36.0", "marked": "^9.0.0", "overlayscrollbars": "2.7.3", "rxjs": "^7.8.1", diff --git a/packages/components-dev/polyfills.ts b/packages/components-dev/polyfills.ts deleted file mode 100644 index 97e307bc2..000000000 --- a/packages/components-dev/polyfills.ts +++ /dev/null @@ -1,75 +0,0 @@ -/** - * @license - * Copyright 2020 Dynatrace LLC - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * This file includes polyfills needed by Angular and is loaded before the app. - * You can add your own extra polyfills to this file. - * - * This file is divided into 2 sections: - * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. - * 2. Application imports. Files imported after ZoneJS that should be loaded before your main - * file. - * - * The current setup is for so-called "evergreen" browsers; the last versions of browsers that - * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), - * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. - * - * Learn more in https://angular.io/guide/browser-support - */ - -/*************************************************************************************************** - * BROWSER POLYFILLS - */ - -/** - * Web Animations `@angular/platform-browser/animations` - * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. - * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). - */ -// import 'web-animations-js'; // Run `npm install --save web-animations-js`. - -/** - * By default, zone.js will patch all possible macroTask and DomEvents - * user can disable parts of macroTask/DomEvents patch by setting following flags - * because those flags need to be set before `zone.js` being loaded, and webpack - * will put import in the top of bundle, so user need to create a separate file - * in this directory (for example: zone-flags.ts), and put the following flags - * into that file, and then add the following code before importing zone.js. - * import './zone-flags.ts'; - * - * The flags allowed in zone-flags.ts are listed here. - * - * The following flags will work for all browsers. - * - * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame - * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick - * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames - * - * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js - * with the following flag, it will bypass `zone.js` patch for IE/Edge - * - * (window as any).__Zone_enable_cross_context_check = true; - * - */ - -/*************************************************************************************************** - * Zone JS is required by default for Angular itself. - */ -import 'zone.js'; // Included with Angular CLI. - -/*************************************************************************************************** - * APPLICATION IMPORTS - */ diff --git a/yarn.lock b/yarn.lock index fef9b93df..07bcec4e8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9348,13 +9348,6 @@ __metadata: languageName: node linkType: hard -"core-js@npm:^3.36.0": - version: 3.36.1 - resolution: "core-js@npm:3.36.1" - checksum: 10c0/4f0ad2464535d809ba659226feca15bff14b9b5452518bddff8d81b9c94b0227b3027d9838f22f1dce664958acb4107b935cc0037695ae545edc2a303bca98bf - languageName: node - linkType: hard - "core-util-is@npm:^1.0.3, core-util-is@npm:~1.0.0": version: 1.0.3 resolution: "core-util-is@npm:1.0.3" @@ -14678,7 +14671,6 @@ __metadata: conventional-changelog: "npm:^3.1.10" conventional-changelog-angular: "npm:5.0.13" conventional-changelog-writer: "npm:5.0.1" - core-js: "npm:^3.36.0" cspell: "npm:^8.14.4" dotenv: "npm:^16.4.5" eslint: "npm:^8.57.0"