From b24df3756fafc983c4b9b0c9c33dd526f6e398db Mon Sep 17 00:00:00 2001 From: Kyle Cordes Date: Sat, 17 Sep 2016 15:44:34 -0500 Subject: [PATCH] fix(packaging): Use top level Core export of select. (#218) This makes store and core jointly more compatible with the use case where you want to load them both via UMDs using SystemJS. By using the new top level export from core, store no longer needs to configure (in the rollup config) a way to reach deeper inside. --- rollup.config.js | 4 ++-- src/store.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index 12cf50a..6b9fe45 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -5,7 +5,7 @@ export default { moduleName: 'ngrx.store', globals: { '@angular/core': 'ng.core', - '@ngrx/core/operator/select': 'ngrx.core', + '@ngrx/core': 'ngrx.core', 'rxjs/Observable': 'Rx', 'rxjs/BehaviorSubject': 'Rx', 'rxjs/Subscriber': 'Rx', @@ -14,4 +14,4 @@ export default { 'rxjs/operator/scan': 'Rx.Observable.prototype', 'rxjs/operator/withLatestFrom': 'Rx.Observable' } -} \ No newline at end of file +} diff --git a/src/store.ts b/src/store.ts index f4db4b1..1e747d8 100644 --- a/src/store.ts +++ b/src/store.ts @@ -1,4 +1,4 @@ -import { select, SelectSignature } from '@ngrx/core/operator/select'; +import { select, SelectSignature } from '@ngrx/core'; import { Observer } from 'rxjs/Observer'; import { Observable } from 'rxjs/Observable'; import { Subscriber } from 'rxjs/Subscriber';