File tree Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Original file line number Diff line number Diff line change 1
1
# react-transform-log-render
2
2
3
- [ React Transform] ( https://github.com/gaearon/babel-plugin-react-transform ) of the render method for log output
3
+ [ React Transform] ( https://github.com/gaearon/babel-plugin-react-transform ) of the render method for log output
4
4
5
5
## Installation
6
6
34
34
}
35
35
```
36
36
37
+ ## Include/Exclude components (by name)
38
+
39
+ 1 . Add path to config module
40
+
41
+ ``` js
42
+ {
43
+ " stage" : 0 ,
44
+ " env" : {
45
+ " development" : {
46
+ " plugins" : [" react-transform" ],
47
+ " extra" : {
48
+ " react-transform" : {
49
+ " transforms" : [{
50
+ " transform" : " react-transform-log-render" ,
51
+ " imports" : [" ./src/react-transform-log-render-options" ]
52
+ }, …]
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+ ```
59
+
60
+ 2 . Config example
61
+
62
+ ``` js
63
+ export default {
64
+ exclude: [' Root' , ' App' ],
65
+ include: [' TaskItem' , ' Header' , ' TaskCreate' ],
66
+ };
67
+ ```
68
+
69
+ > You can be used the option include or exclude separately
70
+
37
71
## How it looks
38
72
39
73
<img width =" 320 " alt =" 2015-11-14 17 12 51 " src =" https://cloud.githubusercontent.com/assets/4242765/11163037/a1263916-8aea-11e5-817d-0de67d66a2bd.png " >
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-transform-log-render" ,
3
- "version" : " 0 .0.1 " ,
3
+ "version" : " 1 .0.0 " ,
4
4
"description" : " React Transform of the render method for log output" ,
5
5
"main" : " lib/index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments