Skip to content

Commit

Permalink
docs(README): usage about tree shaking
Browse files Browse the repository at this point in the history
  • Loading branch information
Army-U committed Jan 23, 2019
1 parent 98b6c1a commit 43eb864
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,27 @@ isEmpty(10) // => false
isEmpty('') // => true
```

### Load on demand

```bash
$ npm i @babel/env babel-plugin-import -D
```

```json
{
"presets": [
["@babel/env", { "modules": false }]
],
"plugins": [
["import", {
"libraryName": "sewing",
"libraryDirectory": "dist",
"style": false
}]
]
}
```

### Development

```bash
Expand Down

0 comments on commit 43eb864

Please sign in to comment.