Skip to content

Commit

Permalink
doc: provide snippet for transpiler config verification (mobxjs#3158)
Browse files Browse the repository at this point in the history
  • Loading branch information
urugator authored Oct 22, 2021
1 parent 4afb1ec commit 336318a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ There are two types of React bindings, `mobx-react-lite` supports only functiona
}
}
```
For verification insert this piece of code at the beginning of your sources (eg. `index.js`)
```javascript
if (!new class { x }().hasOwnProperty('x')) throw new Error('Transpiler is not configured correctly');
```

## MobX on older JavaScript environments

Expand Down

0 comments on commit 336318a

Please sign in to comment.