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 11# react-transform-log-render
22
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
44
55## Installation
66
3434 }
3535 ```
3636
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+
3771## How it looks
3872
3973<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 11{
22 "name" : " react-transform-log-render" ,
3- "version" : " 0 .0.1 " ,
3+ "version" : " 1 .0.0 " ,
44 "description" : " React Transform of the render method for log output" ,
55 "main" : " lib/index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments