-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
RxJS version:
beta.11
Code to reproduce:
import {_catch} from 'rxjs/operator/catch';
- rollup config:
export default {
entry: '../../../dist/packages-dist/router/index.js',
dest: '../../../dist/packages-dist/router/bundles/router.umd.js',
format: 'umd',
moduleName: 'ng.router',
globals: {
...
'rxjs/operator/catch': 'Rx.Observable.prototype'
}
}
Expected behavior:
the router bundle should be able to get hold of the _catch operator from the prototype via _catch property.
Actual behavior:
the _catch operator is not found because in the UMD bundle it was exported as catch (without the leading underscore).
Additional information:
Angular router bug that first raised this issue: angular/angular#11300
Reproduction: http://plnkr.co/edit/aSPFwbLNxlT5sQzSyGIN?p=preview
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels