optimize build for rxjs operators

12 views
Skip to first unread message

Alexander Mills

unread,
Dec 23, 2020, 12:50:54 AM12/23/20
to Angular and AngularJS discussion
I had this:

import {of, throwError} from 'rxjs'
import {switchMap, map} from 'rxjs/operators'

but the namespace was getting polluted, so I did this:

import * as op from "rxjs/operators";
import * as rx from "rxjs";

using using * for imports going to prevent build optimization for angular/webpack or?
Reply all
Reply to author
Forward
0 new messages