Skip to content

Commit e2892f1

Browse files
committed
fix(packaging): update rollup config to correctly treat rxjs 6 as external
1 parent ed915b4 commit e2892f1

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

app/templates/_gulpfile.js

+1-19
Original file line numberDiff line numberDiff line change
@@ -371,25 +371,7 @@ gulp.task('rollup-bundle', (cb) => {
371371
'@angular/<%= ngModule %>': 'ng.<%= ngModule %>',<% } %>
372372

373373
// Rxjs dependencies
374-
'rxjs/Subject': 'Rx',
375-
'rxjs/Observable': 'Rx',
376-
'rxjs/add/observable/fromEvent': 'Rx.Observable',
377-
'rxjs/add/observable/forkJoin': 'Rx.Observable',
378-
'rxjs/add/observable/of': 'Rx.Observable',
379-
'rxjs/add/observable/merge': 'Rx.Observable',
380-
'rxjs/add/observable/throw': 'Rx.Observable',
381-
'rxjs/add/operator/auditTime': 'Rx.Observable.prototype',
382-
'rxjs/add/operator/toPromise': 'Rx.Observable.prototype',
383-
'rxjs/add/operator/map': 'Rx.Observable.prototype',
384-
'rxjs/add/operator/filter': 'Rx.Observable.prototype',
385-
'rxjs/add/operator/do': 'Rx.Observable.prototype',
386-
'rxjs/add/operator/share': 'Rx.Observable.prototype',
387-
'rxjs/add/operator/finally': 'Rx.Observable.prototype',
388-
'rxjs/add/operator/catch': 'Rx.Observable.prototype',
389-
'rxjs/add/observable/empty': 'Rx.Observable.prototype',
390-
'rxjs/add/operator/first': 'Rx.Observable.prototype',
391-
'rxjs/add/operator/startWith': 'Rx.Observable.prototype',
392-
'rxjs/add/operator/switchMap': 'Rx.Observable.prototype'<% if(otherDependencies) {%>,<%}%>
374+
'rxjs': 'rxjs'<% if(otherDependencies) {%>,<%}%>
393375

394376
// ATTENTION:
395377
// Add any other dependency or peer dependency of your library here

0 commit comments

Comments
 (0)