Skip to content

Commit

Permalink
fix(rxjs): Fix missing RxJS operators in tree-shaked apps
Browse files Browse the repository at this point in the history
Perform the deep RxJS imports in eah file in which the operators are used.

Closes #46
  • Loading branch information
christopherthielen committed Feb 11, 2017
1 parent 9e0f064 commit 5f03719
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 26 deletions.
31 changes: 17 additions & 14 deletions src/directives/uiSrefStatus.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
/** @ng2api @module directives */ /** */
import {Directive, Output, EventEmitter, ContentChildren, QueryList, Inject} from "@angular/core";
import {UISref} from "./uiSref";
import {PathNode} from "ui-router-core";
import {Transition} from "ui-router-core";
import {TargetState} from "ui-router-core";
import {State} from "ui-router-core";
import {anyTrueR, tail, unnestR, Predicate} from "ui-router-core";
import {UIRouterGlobals} from "ui-router-core";
import {Param} from "ui-router-core";
import {PathFactory} from "ui-router-core";
import {Subscription} from "rxjs/Subscription";
import {Observable} from "rxjs/Observable";
import {BehaviorSubject} from "rxjs/BehaviorSubject";
/** @ng2api @module directives */
/** */
import { Directive, Output, EventEmitter, ContentChildren, QueryList } from '@angular/core';
import { UISref } from './uiSref';
import {
PathNode, Transition, TargetState, State, anyTrueR, tail, unnestR, Predicate, UIRouterGlobals, Param, PathFactory
} from 'ui-router-core';

import { Subscription } from 'rxjs/Subscription';
import { Observable } from 'rxjs/Observable';
import { BehaviorSubject } from 'rxjs/BehaviorSubject';

import 'rxjs/add/observable/of';
import 'rxjs/add/observable/fromPromise';
import 'rxjs/add/observable/combineLatest';
import 'rxjs/add/operator/concat';
import 'rxjs/add/operator/switchMap';

/** @internalapi */
interface TransEvt { evt: string, trans: Transition }
Expand Down
12 changes: 0 additions & 12 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
/** @ng2api @module ng2 */ /** for typedoc */
import "rxjs/Observable";
import "rxjs/ReplaySubject";
import "rxjs/BehaviorSubject";
import "rxjs/Subscription";
import 'rxjs/add/observable/of';
import 'rxjs/add/observable/combineLatest';
import 'rxjs/add/observable/fromPromise';
import 'rxjs/add/operator/switchMap';
import 'rxjs/add/operator/mergeMap';
import 'rxjs/add/operator/concat';
import 'rxjs/add/operator/map';

export * from "ui-router-core";
export * from "./interface";
export * from "./providers";
Expand Down

0 comments on commit 5f03719

Please sign in to comment.