Fixed "CommonJS or AMD dependencies can cause optimization bailouts." warnings

https://stackoverflow.com/questions/62592903/upgrading-to-angular-10-fix-commonjs-or-amd-dependencies-can-cause-optimizatio/62604034#62604034
This commit is contained in:
Giuseppe Digilio
2020-11-23 16:52:55 +01:00
parent 9f5204992d
commit 4473395cb9
188 changed files with 296 additions and 384 deletions

View File

@@ -14,7 +14,7 @@ import { NO_ERRORS_SCHEMA } from '@angular/core';
import { By } from '@angular/platform-browser';
import { CollectionSelectComponent } from './collection-select.component';
import { Collection } from '../../../core/shared/collection.model';
import { of } from 'rxjs/internal/observable/of';
import { of } from 'rxjs';
describe('CollectionSelectComponent', () => {
let comp: CollectionSelectComponent;

View File

@@ -1,5 +1,5 @@
import { ItemSelectComponent } from './item-select.component';
import { async, ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { Item } from '../../../core/shared/item.model';
import { RemoteData } from '../../../core/data/remote-data';
@@ -14,7 +14,7 @@ import { HostWindowService } from '../../host-window.service';
import { HostWindowServiceStub } from '../../testing/host-window-service.stub';
import { NO_ERRORS_SCHEMA } from '@angular/core';
import { By } from '@angular/platform-browser';
import { of } from 'rxjs/internal/observable/of';
import { of } from 'rxjs';
describe('ItemSelectComponent', () => {
let comp: ItemSelectComponent;

View File

@@ -5,10 +5,12 @@ import { AppState } from '../../app.reducer';
import {
ObjectSelectionDeselectAction,
ObjectSelectionInitialDeselectAction,
ObjectSelectionInitialSelectAction, ObjectSelectionResetAction,
ObjectSelectionSelectAction, ObjectSelectionSwitchAction
ObjectSelectionInitialSelectAction,
ObjectSelectionResetAction,
ObjectSelectionSelectAction,
ObjectSelectionSwitchAction
} from './object-select.actions';
import { of } from 'rxjs/internal/observable/of';
import { of } from 'rxjs';
describe('ObjectSelectService', () => {
let service: ObjectSelectService;