Skip to content

Commit

Permalink
readme update: tree-shaking
Browse files Browse the repository at this point in the history
  • Loading branch information
pavvell committed Nov 4, 2017
1 parent b6985f6 commit 1060af2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -21,4 +21,10 @@ let stream$ = new Subject();
stream$.subscribe(value => console.log(value));
stream$.next(1); // 1
stream$.next(2); // 2
```
## Tree-shaking
To perform better tree-shaking, import what you need from its local module, for example:
```javascript
import { Subject } from 'rxstream/es5/subjects/subject';
import { merge } from 'rxstream/es5/operators/merge';
```
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "rxstream",
"version": "1.3.3",
"version": "1.3.4",
"description": "",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit 1060af2

Please sign in to comment.