Commit 5106b79
committed
Add support for {harmony: true} to react-tools
```
require('react-tools').transform(code, {harmony: true});
```
now enables all the harmony es6 transforms that are supported.
This is modeled after https://github.com/facebook/react/blob/master/bin/jsx#L17-L231 parent 83e4ef1 commit 5106b79
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
0 commit comments