Skip to content

Instantly share code, notes, and snippets.

@robwormald
Created December 27, 2016 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robwormald/01ee7acb4344956ab908d4dac2efe1b7 to your computer and use it in GitHub Desktop.
Save robwormald/01ee7acb4344956ab908d4dac2efe1b7 to your computer and use it in GitHub Desktop.
import {Observable} from 'rxjs' //the entire package, 300+KB
import {Observable} from 'rxjs/Observable' //just Observable, no operators, ~8KB
import {Subject} from 'rxjs/Subject' //just Subject, no operators
import 'rxjs/add/operator/map' //patch Observable proto with map operator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment