Skip to content

Commit

Permalink
fix: do not import the whole rxjs library
Browse files Browse the repository at this point in the history
we only need `rxjs/Subscription`
close #117
  • Loading branch information
urish committed Jan 9, 2017
1 parent c4df390 commit c20b846
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@
"when": "$(basename).ts"
}
}
,
"typescript.tsdk": "./node_modules/typescript/lib"
}
2 changes: 1 addition & 1 deletion src/calendar.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import {Pipe, ChangeDetectorRef, PipeTransform, EventEmitter, OnDestroy, NgZone} from '@angular/core';
import * as moment from 'moment';
import {Subscription} from 'rxjs';
import {Subscription} from 'rxjs/Subscription';

// under systemjs, moment is actually exported as the default export, so we account for that
const momentConstructor: (value?: any) => moment.Moment = (<any>moment).default || moment;
Expand Down

0 comments on commit c20b846

Please # to comment.