{"_id":"babel-plugin-react-transform","_rev":"260641","name":"babel-plugin-react-transform","description":"Babel plugin to instrument React components with custom transforms","dist-tags":{"beta":"2.0.0-beta1","latest":"3.0.0"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"time":{"modified":"2021-06-03T16:44:30.000Z","created":"2015-09-02T23:33:10.037Z","3.0.0":"2017-09-12T14:36:24.807Z","2.0.2":"2016-03-05T01:31:11.804Z","2.0.1":"2016-03-04T18:42:57.634Z","2.0.0":"2015-12-23T20:05:22.103Z","2.0.0-beta1":"2015-12-09T05:04:47.097Z","1.1.1":"2015-09-24T17:23:56.194Z","1.1.0":"2015-09-23T23:53:40.057Z","1.0.5":"2015-09-17T00:46:39.413Z","1.0.4":"2015-09-16T19:51:17.623Z","1.0.3":"2015-09-04T19:12:17.450Z","1.0.2":"2015-09-03T15:10:32.178Z","1.0.1":"2015-09-03T00:02:05.796Z","1.0.0":"2015-09-02T23:33:10.037Z"},"users":{"nelix":true,"zenato":true,"panlw":true,"jabbrwcky":true,"moimikey":true,"isman_usoh":true,"adrianpark":true,"abdul":true,"wkaifang":true,"mswanson1524":true,"langri-sha":true,"qddegtya":true,"shuoshubao":true,"lestad":true,"tedyhy":true,"youtwo":true,"jondar":true,"maddas":true},"author":{"name":"Dan Abramov","email":"dan.abramov@me.com"},"repository":{"type":"git","url":"git+https://github.com/gaearon/babel-plugin-react-transform.git"},"versions":{"3.0.0":{"name":"babel-plugin-react-transform","version":"3.0.0","description":"Babel plugin to instrument React components with custom transforms","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/gaearon/babel-plugin-react-transform.git"},"author":{"name":"Dan Abramov","email":"dan.abramov@me.com"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/babel-plugin-react-transform/issues"},"homepage":"https://github.com/gaearon/babel-plugin-react-transform#readme","devDependencies":{"babel-cli":"^6.2.0","babel-core":"^6.2.1","babel-eslint":"^4.1.6","babel-preset-es2015":"^6.1.18","babel-register":"^6.2.0","eslint":"^1.10.3","eslint-plugin-react":"^3.11.2","mocha":"^2.2.5","rimraf":"^2.4.3"},"scripts":{"clean":"rimraf lib","build":"babel src -d lib","test":"mocha --compilers js:babel-register","test:watch":"npm run test -- --watch","prepublish":"npm run clean && npm run build"},"keywords":["babel-plugin","react-transform","instrumentation","dx","react","reactjs","components"],"dependencies":{"lodash":"^4.6.1"},"gitHead":"d7069df5c6f36a07857fd108067dc515b3a795ee","_id":"babel-plugin-react-transform@3.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"dist":{"shasum":"402f25137b7bb66e9b54ead75557dfbc7ecaaa74","size":13715,"noattachment":false,"key":"/babel-plugin-react-transform/-/babel-plugin-react-transform-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-react-transform/download/babel-plugin-react-transform-3.0.0.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-react-transform-3.0.0.tgz_1505226983613_0.6134067801758647"},"directories":{},"publish_time":1505226984807,"_cnpm_publish_time":1505226984807,"_hasShrinkwrap":false},"2.0.2":{"name":"babel-plugin-react-transform","version":"2.0.2","description":"Babel plugin to instrument React components with custom transforms","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/gaearon/babel-plugin-react-transform.git"},"author":{"name":"Dan Abramov","email":"dan.abramov@me.com"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/babel-plugin-react-transform/issues"},"homepage":"https://github.com/gaearon/babel-plugin-react-transform#readme","devDependencies":{"babel-cli":"^6.2.0","babel-core":"^6.2.1","babel-eslint":"^4.1.6","babel-preset-es2015":"^6.1.18","babel-register":"^6.2.0","eslint":"^1.10.3","eslint-plugin-react":"^3.11.2","mocha":"^2.2.5","rimraf":"^2.4.3"},"scripts":{"clean":"rimraf lib","build":"babel src -d lib","test":"mocha --compilers js:babel-register","test:watch":"npm run test -- --watch","prepublish":"npm run clean && npm run build"},"keywords":["babel-plugin","react-transform","instrumentation","dx","react","reactjs","components"],"dependencies":{"lodash":"^4.6.1"},"gitHead":"827843e1da56b1edbd4f9e526339d9968ada652d","_id":"babel-plugin-react-transform@2.0.2","_shasum":"515bbfa996893981142d90b1f9b1635de2995109","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"dist":{"shasum":"515bbfa996893981142d90b1f9b1635de2995109","size":12152,"noattachment":false,"key":"/babel-plugin-react-transform/-/babel-plugin-react-transform-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-react-transform/download/babel-plugin-react-transform-2.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/babel-plugin-react-transform-2.0.2.tgz_1457141468524_0.8604225248564035"},"directories":{},"publish_time":1457141471804,"_cnpm_publish_time":1457141471804,"_hasShrinkwrap":false},"2.0.1":{"name":"babel-plugin-react-transform","version":"2.0.1","description":"Babel plugin to instrument React components with custom transforms","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/gaearon/babel-plugin-react-transform.git"},"author":{"name":"Dan Abramov","email":"dan.abramov@me.com"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/babel-plugin-react-transform/issues"},"homepage":"https://github.com/gaearon/babel-plugin-react-transform#readme","devDependencies":{"babel-cli":"^6.2.0","babel-core":"^6.2.1","babel-eslint":"^4.1.6","babel-preset-es2015":"^6.1.18","babel-register":"^6.2.0","eslint":"^1.10.3","eslint-plugin-react":"^3.11.2","mocha":"^2.2.5","rimraf":"^2.4.3"},"scripts":{"clean":"rimraf lib","build":"babel src -d lib","test":"mocha --compilers js:babel-register","test:watch":"npm run test -- --watch","prepublish":"npm run clean && npm run build"},"keywords":["babel-plugin","react-transform","instrumentation","dx","react","reactjs","components"],"dependencies":{"array-find":"^1.0.0"},"gitHead":"b8f5c6f1214de2e42cda91acb4b69325af7e11d2","_id":"babel-plugin-react-transform@2.0.1","_shasum":"c6269edb0f72763b9fb1fc1c34eb1ba8d3c06dbf","_from":".","_npmVersion":"3.7.0","_nodeVersion":"5.1.1","_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"dist":{"shasum":"c6269edb0f72763b9fb1fc1c34eb1ba8d3c06dbf","size":19630,"noattachment":false,"key":"/babel-plugin-react-transform/-/babel-plugin-react-transform-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-react-transform/download/babel-plugin-react-transform-2.0.1.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/babel-plugin-react-transform-2.0.1.tgz_1457116974394_0.2700151791796088"},"directories":{},"publish_time":1457116977634,"_cnpm_publish_time":1457116977634,"_hasShrinkwrap":false},"2.0.0":{"name":"babel-plugin-react-transform","version":"2.0.0","description":"Babel plugin to instrument React components with custom transforms","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/gaearon/babel-plugin-react-transform.git"},"author":{"name":"Dan Abramov","email":"dan.abramov@me.com"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/babel-plugin-react-transform/issues"},"homepage":"https://github.com/gaearon/babel-plugin-react-transform#readme","devDependencies":{"babel-cli":"^6.2.0","babel-core":"^6.2.1","babel-eslint":"^4.1.6","babel-preset-es2015":"^6.1.18","babel-register":"^6.2.0","eslint":"^1.10.3","eslint-plugin-react":"^3.11.2","mocha":"^2.2.5","rimraf":"^2.4.3"},"scripts":{"clean":"rimraf lib","build":"babel src -d lib","test":"mocha --compilers js:babel-register","test:watch":"npm run test -- --watch","prepublish":"npm run clean && npm run build"},"keywords":["babel-plugin","react-transform","instrumentation","dx","react","reactjs","components"],"dependencies":{"array-find":"^1.0.0"},"gitHead":"4bdbef12435f184222fe72ad409d9c71acc6731b","_id":"babel-plugin-react-transform@2.0.0","_shasum":"1d9d9f7001da9b355359f8f92c5de5a921293d9b","_from":".","_npmVersion":"3.3.10","_nodeVersion":"0.10.41","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"1d9d9f7001da9b355359f8f92c5de5a921293d9b","size":11128,"noattachment":false,"key":"/babel-plugin-react-transform/-/babel-plugin-react-transform-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-react-transform/download/babel-plugin-react-transform-2.0.0.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"directories":{},"publish_time":1450901122103,"_cnpm_publish_time":1450901122103,"_hasShrinkwrap":false},"2.0.0-beta1":{"name":"babel-plugin-react-transform","version":"2.0.0-beta1","description":"Babel plugin to instrument React components with custom transforms","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/gaearon/babel-plugin-react-transform.git"},"author":{"name":"Dan Abramov","email":"dan.abramov@me.com"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/babel-plugin-react-transform/issues"},"homepage":"https://github.com/gaearon/babel-plugin-react-transform#readme","devDependencies":{"babel-cli":"^6.2.0","babel-core":"^6.2.1","babel-eslint":"^4.1.6","babel-preset-es2015":"^6.1.18","babel-register":"^6.2.0","eslint":"^1.10.3","eslint-plugin-react":"^3.11.2","mocha":"^2.2.5","rimraf":"^2.4.3"},"scripts":{"clean":"rimraf lib","build":"babel src -d lib","test":"mocha --compilers js:babel-register","test:watch":"npm run test -- --watch","prepublish":"npm run clean && npm run build"},"keywords":["babel-plugin","react-transform","instrumentation","dx","react","reactjs","components"],"dependencies":{"array-find":"^1.0.0"},"gitHead":"a99196cc3763516d23265af8a071adcacf5bf885","_id":"babel-plugin-react-transform@2.0.0-beta1","_shasum":"5f54f863abe17ca522ff0acd053ba4a74c029d07","_from":".","_npmVersion":"3.3.10","_nodeVersion":"0.10.41","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"5f54f863abe17ca522ff0acd053ba4a74c029d07","size":10791,"noattachment":false,"key":"/babel-plugin-react-transform/-/babel-plugin-react-transform-2.0.0-beta1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-react-transform/download/babel-plugin-react-transform-2.0.0-beta1.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"directories":{},"publish_time":1449637487097,"_cnpm_publish_time":1449637487097,"_hasShrinkwrap":false},"1.1.1":{"name":"babel-plugin-react-transform","version":"1.1.1","description":"Babel plugin to instrument React components with custom transforms","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/gaearon/babel-plugin-react-transform.git"},"author":{"name":"Dan Abramov","email":"dan.abramov@me.com"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/babel-plugin-react-transform/issues"},"homepage":"https://github.com/gaearon/babel-plugin-react-transform#readme","devDependencies":{"babel":"^5.8.23","mocha":"^2.2.5","rimraf":"^2.4.3"},"scripts":{"clean":"rimraf lib","build":"babel-plugin build","test":"mocha --compilers js:babel/register","test:watch":"npm run test -- --watch","prepublish":"npm run clean && npm run build"},"keywords":["babel-plugin","react-transform","instrumentation","dx","react","reactjs","components"],"dependencies":{"path-parse":"^1.0.5"},"gitHead":"a477fe0810a103c9ed0480648104479e5b1b7e35","_id":"babel-plugin-react-transform@1.1.1","_shasum":"95e243827a1090bb8b6e93fe7c6f56fb5c23b0fb","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"dist":{"shasum":"95e243827a1090bb8b6e93fe7c6f56fb5c23b0fb","size":10984,"noattachment":false,"key":"/babel-plugin-react-transform/-/babel-plugin-react-transform-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-react-transform/download/babel-plugin-react-transform-1.1.1.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"directories":{},"publish_time":1443115436194,"_cnpm_publish_time":1443115436194,"_hasShrinkwrap":false},"1.1.0":{"name":"babel-plugin-react-transform","version":"1.1.0","description":"Babel plugin to instrument React components with custom transforms","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/gaearon/babel-plugin-react-transform.git"},"author":{"name":"Dan Abramov","email":"dan.abramov@me.com"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/babel-plugin-react-transform/issues"},"homepage":"https://github.com/gaearon/babel-plugin-react-transform#readme","devDependencies":{"babel":"^5.8.23","mocha":"^2.2.5","rimraf":"^2.4.3"},"scripts":{"clean":"rimraf lib","build":"babel-plugin build","test":"mocha --compilers js:babel/register","test:watch":"npm run test -- --watch","prepublish":"npm run clean && npm run build"},"keywords":["babel-plugin","react-transform","instrumentation","dx","react","reactjs","components"],"dependencies":{"path-parse":"^1.0.5"},"gitHead":"63b5f51f1f28efb4e9954d06bea73314eb6afe49","_id":"babel-plugin-react-transform@1.1.0","_shasum":"6eb5d60c9ef2eba8253e5843d6da602cfbf90063","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"dist":{"shasum":"6eb5d60c9ef2eba8253e5843d6da602cfbf90063","size":11212,"noattachment":false,"key":"/babel-plugin-react-transform/-/babel-plugin-react-transform-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-react-transform/download/babel-plugin-react-transform-1.1.0.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"directories":{},"publish_time":1443052420057,"_cnpm_publish_time":1443052420057,"_hasShrinkwrap":false},"1.0.5":{"name":"babel-plugin-react-transform","version":"1.0.5","description":"Babel plugin to instrument React components with custom transforms","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/gaearon/babel-plugin-react-transform.git"},"author":{"name":"Dan Abramov","email":"dan.abramov@me.com"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/babel-plugin-react-transform/issues"},"homepage":"https://github.com/gaearon/babel-plugin-react-transform#readme","devDependencies":{"babel":"^5.8.23","mocha":"^2.2.5","rimraf":"^2.4.3"},"scripts":{"clean":"rimraf lib","build":"babel-plugin build","test":"mocha --compilers js:babel/register","test:watch":"npm run test -- --watch","prepublish":"npm run clean && npm run build"},"keywords":["babel-plugin","react-transform","instrumentation","dx","react","reactjs","components"],"dependencies":{"path-parse":"^1.0.5"},"gitHead":"49b7d6b42942204b03163471d280c5d8ea9c426b","_id":"babel-plugin-react-transform@1.0.5","_shasum":"2fc1bf60f8450b5ab01f18d498ebbbf7f3733911","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"dist":{"shasum":"2fc1bf60f8450b5ab01f18d498ebbbf7f3733911","size":9886,"noattachment":false,"key":"/babel-plugin-react-transform/-/babel-plugin-react-transform-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-react-transform/download/babel-plugin-react-transform-1.0.5.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"directories":{},"publish_time":1442450799413,"_cnpm_publish_time":1442450799413,"_hasShrinkwrap":false},"1.0.4":{"name":"babel-plugin-react-transform","version":"1.0.4","description":"Babel plugin to instrument React components with custom transforms","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/gaearon/babel-plugin-react-transform.git"},"author":{"name":"Dan Abramov","email":"dan.abramov@me.com"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/babel-plugin-react-transform/issues"},"homepage":"https://github.com/gaearon/babel-plugin-react-transform#readme","devDependencies":{"babel":"^5.8.23","mocha":"^2.2.5"},"scripts":{"build":"babel-plugin build","test":"mocha --compilers js:babel/register","test:watch":"npm run test -- --watch","prepublish":"npm run build"},"keywords":["babel-plugin","react-transform","instrumentation","dx","react","reactjs","components"],"dependencies":{"path-parse":"^1.0.5"},"gitHead":"d65e4316ead6a099597df201ed4232604eec1886","_id":"babel-plugin-react-transform@1.0.4","_shasum":"a8484a80fe6fee777f9ba5bf7f3dc3510549f86b","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"dist":{"shasum":"a8484a80fe6fee777f9ba5bf7f3dc3510549f86b","size":16917,"noattachment":false,"key":"/babel-plugin-react-transform/-/babel-plugin-react-transform-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-react-transform/download/babel-plugin-react-transform-1.0.4.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"directories":{},"publish_time":1442433077623,"_cnpm_publish_time":1442433077623,"_hasShrinkwrap":false},"1.0.3":{"name":"babel-plugin-react-transform","version":"1.0.3","description":"Babel plugin to instrument React components with custom transforms","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/gaearon/babel-plugin-react-transform.git"},"author":{"name":"Dan Abramov","email":"dan.abramov@me.com"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/babel-plugin-react-transform/issues"},"homepage":"https://github.com/gaearon/babel-plugin-react-transform#readme","devDependencies":{"babel":"^5.8.23","mocha":"^2.2.5"},"scripts":{"build":"babel-plugin build","test":"mocha --compilers js:babel/register","test:watch":"npm run test -- --watch","prepublish":"npm run build"},"keywords":["babel-plugin","react-transform","instrumentation","dx","react","reactjs","components"],"dependencies":{"path-parse":"^1.0.5"},"gitHead":"f931796270a9052abce24dadda93b36755525f92","_id":"babel-plugin-react-transform@1.0.3","_shasum":"0777ed46a8ced460c02a9fb8f8dd8a5e1c252065","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"dist":{"shasum":"0777ed46a8ced460c02a9fb8f8dd8a5e1c252065","size":9666,"noattachment":false,"key":"/babel-plugin-react-transform/-/babel-plugin-react-transform-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-react-transform/download/babel-plugin-react-transform-1.0.3.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"directories":{},"publish_time":1441393937450,"_cnpm_publish_time":1441393937450,"_hasShrinkwrap":false},"1.0.2":{"name":"babel-plugin-react-transform","version":"1.0.2","description":"Babel plugin to instrument React components with custom transforms","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/gaearon/babel-plugin-react-transform.git"},"author":{"name":"Dan Abramov","email":"dan.abramov@me.com"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/babel-plugin-react-transform/issues"},"homepage":"https://github.com/gaearon/babel-plugin-react-transform#readme","devDependencies":{"babel":"^5.8.23","mocha":"^2.2.5"},"scripts":{"build":"babel-plugin build","test":"mocha --compilers js:babel/register","test:watch":"npm run test -- --watch","prepublish":"npm run build"},"keywords":["babel-plugin","react-transform","instrumentation","dx","react","reactjs","components"],"gitHead":"6dadc8186557136158eed61ce3f02db79cd84d22","_id":"babel-plugin-react-transform@1.0.2","_shasum":"b01df3153d61f8fe7b7bb7a682f161375a5968c2","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"dist":{"shasum":"b01df3153d61f8fe7b7bb7a682f161375a5968c2","size":9409,"noattachment":false,"key":"/babel-plugin-react-transform/-/babel-plugin-react-transform-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-react-transform/download/babel-plugin-react-transform-1.0.2.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"directories":{},"publish_time":1441293032178,"_cnpm_publish_time":1441293032178,"_hasShrinkwrap":false},"1.0.1":{"name":"babel-plugin-react-transform","version":"1.0.1","description":"Babel plugin to instrument React components with custom transforms","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/gaearon/babel-plugin-react-transform.git"},"author":{"name":"Dan Abramov","email":"dan.abramov@me.com"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/babel-plugin-react-transform/issues"},"homepage":"https://github.com/gaearon/babel-plugin-react-transform#readme","devDependencies":{"babel":"^5.8.23","mocha":"^2.2.5"},"scripts":{"build":"babel-plugin build","test":"mocha --compilers js:babel/register","test:watch":"npm run test -- --watch","prepublish":"npm run build"},"keywords":["babel-plugin","react-transform","instrumentation","dx","react","reactjs","components"],"gitHead":"a73345bbb167699ed7b45ae6766f79e658fa910f","_id":"babel-plugin-react-transform@1.0.1","_shasum":"73510a8eeda5b4241e5c7246b551ec888398f152","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"dist":{"shasum":"73510a8eeda5b4241e5c7246b551ec888398f152","size":8636,"noattachment":false,"key":"/babel-plugin-react-transform/-/babel-plugin-react-transform-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-react-transform/download/babel-plugin-react-transform-1.0.1.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"directories":{},"publish_time":1441238525796,"_cnpm_publish_time":1441238525796,"_hasShrinkwrap":false},"1.0.0":{"name":"babel-plugin-react-transform","version":"1.0.0","description":"Babel plugin to instrument React components with custom transforms","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/gaearon/babel-plugin-react-transform.git"},"author":{"name":"Dan Abramov","email":"dan.abramov@me.com"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/babel-plugin-react-transform/issues"},"homepage":"https://github.com/gaearon/babel-plugin-react-transform#readme","devDependencies":{"babel":"^5.8.23","mocha":"^2.2.5"},"scripts":{"build":"babel-plugin build","test":"mocha --compilers js:babel/register","test:watch":"npm run test -- --watch","prepublish":"npm run build"},"keywords":["babel-plugin","react-transform","instrumentation","dx","react","reactjs","components"],"gitHead":"cb096f7bd6efd78b4ffc7fcb00878c26f9219093","_id":"babel-plugin-react-transform@1.0.0","_shasum":"7478b37fd68872e166ebb5275826ce129c015129","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"dist":{"shasum":"7478b37fd68872e166ebb5275826ce129c015129","size":7933,"noattachment":false,"key":"/babel-plugin-react-transform/-/babel-plugin-react-transform-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-react-transform/download/babel-plugin-react-transform-1.0.0.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"deprecated":"Option name was incorrect. Please update to 1.0.1","directories":{},"publish_time":1441236790037,"_cnpm_publish_time":1441236790037,"_hasShrinkwrap":false}},"readme":">## This Project Is Deprecated\n\n>React Hot Loader 3 is [on the horizon](https://github.com/gaearon/react-hot-loader/pull/240), and you can try it today ([boilerplate branch](https://github.com/gaearon/react-hot-boilerplate/pull/61), [upgrade example](https://github.com/gaearon/redux-devtools/commit/64f58b7010a1b2a71ad16716eb37ac1031f93915)). It fixes some [long-standing issues](https://twitter.com/dan_abramov/status/722040946075045888) with both React Hot Loader and React Transform, and is intended as a replacement for both. The docs are not there yet, but they will be added before the final release. For now, [this commit](https://github.com/gaearon/redux-devtools/commit/64f58b7010a1b2a71ad16716eb37ac1031f93915) is a good reference.\n\n# babel-plugin-react-transform\n\n[![react-transform channel on discord](https://img.shields.io/badge/discord-react--transform%40reactiflux-61DAFB.svg?style=flat-square)](http://www.reactiflux.com)\n\n:rocket: **Now  with [Babel 6](https://github.com/babel/babel) support** (thank you [@thejameskyle](https://github.com/thejameskyle)!)\n\nThis plugin wraps React components with arbitrary transforms. In other words, **it allows you to instrument React components** in any way—limited only by your imagination.\n\n## ????????????????????\n\nThis is **highly experimental tech**. If you’re enthusiastic about hot reloading, by all means, give it a try, but don’t bet your project on it. Either of the technologies it relies upon may change drastically or get deprecated any day. You’ve been warned ???? .\n\n**This technology exists to prototype next-generation React developer experience**. Please don’t use it blindly if you don’t know the underlying technologies well. Otherwise you are likely to get disillusioned with JavaScript tooling.\n\n**No effort went into making this user-friendly yet. The goal is to eventually kill this technology** in favor of less hacky technologies baked into React. These projects are not long term.\n\n## Table of Contents\n\n* [Ecosystem](#ecosystem)\n* [Demo Project](#demo-project)\n* [Installation](#installation)\n* [Writing Transforms](#writing-transforms)\n\n## Ecosystem\n\nFor a reference implementation, see [**react-transform-boilerplate**](https://github.com/gaearon/react-transform-boilerplate).  \nFor a starter kit to help write your own transforms, see [**react-transform-noop**](https://github.com/pwmckenna/react-transform-noop).\n\n\n#### Transforms\n\n* [**react-transform-hmr**](https://github.com/gaearon/react-transform-hmr) - enables hot reloading using HMR API\n* [**react-transform-catch-errors**](https://github.com/gaearon/react-transform-catch-errors) - catches errors inside `render()`\n* [**react-transform-debug-inspector**](https://github.com/alexkuz/react-transform-debug-inspector) - renders an inline prop inspector\n* [**react-transform-render-visualizer**](https://github.com/spredfast/react-transform-render-visualizer) - highlight components when updated\n* [**react-transform-style**](https://github.com/pwmckenna/react-transform-style) - support `style` and `className` styling for all components\n* [**react-transform-log-render**](https://github.com/rkit/react-transform-log-render) - log component renders with passed props and state\n* [**react-transform-count-renders**](https://github.com/stipsan/react-transform-count-renders) - counts how many times your components render\n\nFeeling inspired? Learn [how to write transforms](#writing-transforms) and send a PR!\n\n## Demo Project\n\nCheck out **[react-transform-boilerplate](https://github.com/gaearon/react-transform-boilerplate)** for a demo showing a combination of transforms.\n\n![](https://cloud.githubusercontent.com/assets/1539088/11611771/ae1a6bd8-9bac-11e5-9206-42447e0fe064.gif)\n\n## Installation\n\nThis plugin is designed to be used with the Babel 6 ecosystem. These instructions assume you have a working project set up. If you do not have Babel set up in your project, [learn how to integrate](https://babeljs.io/docs/setup/) it with your toolkit before installing this plugin.\n\n##### Using NPM\n\nInstall plugin and save in `devDependencies`:\n\n```bash\nnpm install --save-dev babel-plugin-react-transform\n```\n\nInstall some transforms:\n\n```bash\nnpm install --save-dev react-transform-hmr\nnpm install --save-dev react-transform-catch-errors\n```\n\n##### Configuration\nAdd react-transform to the list of plugins in your babel configuration (usually `.babelrc`):\n\n```js\n\n\n{\n  \"presets\": [\"react\", \"es2015\"],\n  \"env\": {\n    // this plugin will be included only in development mode, e.g.\n    // if NODE_ENV (or BABEL_ENV) environment variable is not set\n    // or is equal to \"development\"\n    \"development\": {\n      \"plugins\": [\n        // must be an array with options object as second item\n        [\"react-transform\", {\n          // must be an array of objects\n          \"transforms\": [{\n            // can be an NPM module name or a local path\n            \"transform\": \"react-transform-hmr\",\n            // see transform docs for \"imports\" and \"locals\" dependencies\n            \"imports\": [\"react\"],\n            \"locals\": [\"module\"]\n          }, {\n            // you can have many transforms, not just one\n            \"transform\": \"react-transform-catch-errors\",\n            \"imports\": [\"react\", \"redbox-react\"]\n          }, {\n            // can be an NPM module name or a local path\n            \"transform\": \"./src/my-custom-transform\"\n          }]\n          // by default we only look for `React.createClass` (and ES6 classes)\n          // but you can tell the plugin to look for different component factories:\n          // factoryMethods: [\"React.createClass\", \"createClass\"]\n        }]\n      ]\n    }\n  }\n}\n```\n\nAs you can see, each transform, apart from the `transform` field where you write it name, also has `imports` and `locals` fields. You should consult the docs of each individual transform to learn which `imports` and `locals` it might need, and how it uses them. You probably already guessed that this is just a way to inject local variables (like `module`) or dependencies (like `react`) into the transforms that need them.\n\nNote that when using `React.createClass()` and allowing `babel` to extract the `displayName` property you must ensure that [babel-plugin-react-display-name](https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-react-display-name) is included before `react-transform`. See [this github issue](https://github.com/gaearon/babel-plugin-react-transform/issues/19) for more details.\n\nYou may optionally specify an array of strings called `factoryMethods` if you want the plugin to look for components created with a factory method other than `React.createClass`. Note that you don’t have to do anything special to look for ES6 components—`factoryMethods` is only relevant if you use factory methods akin to `React.createClass`.\n\n## Writing Transforms\n\nIt’s not hard to write a custom transform! First, make sure you call your NPM package `react-transform-*` so we have uniform naming across the transforms. The only thing you should export from your transform module is a function.\n\n```js\nexport default function myTransform() {\n  // ¯\\_(ツ)_/¯\n}\n```\n\nThis function should *return another function*:\n\n```js\nexport default function myTransform() {\n  return function wrap(ReactClass) {\n    // ¯\\_(ツ)_/¯\n    return ReactClass;\n  }\n}\n```\n\nAs you can see, you’ll receive `ReactClass` as a parameter. It’s up to you to do something with it: monkeypatch its methods, create another component with the same prototype and a few different methods, wrap it into a higher-order component, etc. Be creative!\n\n```js\nexport default function logAllUpdates() {\n  return function wrap(ReactClass) {\n    const displayName = // ¯\\_(ツ)_/¯\n    const originalComponentDidUpdate = ReactClass.prototype.componentDidUpdate;\n\n    ReactClass.prototype.componentDidUpdate = function componentDidUpdate() {\n      console.info(`${displayName} updated:`, this.props, this.state);\n\n      if (originalComponentDidUpdate) {\n        originalComponentDidUpdate.apply(this, arguments);\n      }\n    }\n\n    return ReactClass;\n  }\n}\n```\n\nOh, how do I get `displayName`?\nActually, we give your transformation function a single argument called `options`. Yes, `options`:\n\n```js\nexport default function logAllUpdates(options) {\n```\n\nIt contains some useful data. For example, your `options` could look like this:\n\n```js\n{\n  // the file being processed\n  filename: '/Users/dan/p/my-projects/src/App.js',\n  // remember that \"imports\" .babelrc option?\n  imports: [React],\n  // remember that \"locals\" .babelrc option?\n  locals: [module],\n  // all components declared in the current file\n  components: {\n    $_MyComponent: {\n      // with their displayName when available\n      displayName: 'MyComponent'\n    },\n    $_SomeOtherComponent: {\n      displayName: 'SomeOtherComponent',\n      // and telling whether they are defined inside a function\n      isInFunction: true\n    }\n  }\n}\n```\n\nOf course, you might not want to use *all* options, but isn’t it nice to know that you have access to them in the top scope—which means before the component definitions actually run? (Hint: a hot reloading plugin might use this to decide whether a module is worthy of reloading, even if it contains an error and no React components have yet been wrapped because of it.)\n\nSo, to retrieve the `displayName` (or `isInFunction`, when available), use the `options` parameter *and* the second `uniqueId` parameter given to the inner function after `ReactClass`:\n\n```js\nexport default function logAllUpdates(options) {\n  return function wrap(ReactClass, uniqueId) {\n    const displayName = options.components[uniqueId].displayName || '<Unknown>';\n```\n\nThis is it!\n\nSure, it’s a slightly contrived example, as you can grab `ReactClass.displayName` just fine, but it illustrates a point: you have information about all of the components inside a file before that file executes, which is *very* handy for some transformations.\n\nHere is the complete code for this example transformation function:\n\n```js\nexport default function logAllUpdates(options) {\n  return function wrap(ReactClass, uniqueId) {\n    const displayName = options.components[uniqueId].displayName || '<Unknown>';\n    const originalComponentDidUpdate = ReactClass.prototype.componentDidUpdate;\n\n    ReactClass.prototype.componentDidUpdate = function componentDidUpdate() {\n      console.info(`${displayName} updated:`, this.props, this.state);\n\n      if (originalComponentDidUpdate) {\n        originalComponentDidUpdate.apply(this, arguments);\n      }\n    }\n\n    return ReactClass;\n  }\n}\n```\n\nNow go ahead and write your own! Don’t forget to tag it with `react-transform` [keyword on npm](https://www.npmjs.com/browse/keyword/react-transform).\n\n## Patrons\n\nThe work on React Transform, [React Hot Loader](https://github.com/gaearon/react-hot-loader), [Redux](https://github.com/rackt/redux), and related projects was [funded by the community](https://www.patreon.com/reactdx). Meet some of the outstanding companies that made it possible:\n\n* [Webflow](https://github.com/webflow)\n* [Ximedes](https://www.ximedes.com/)\n\n[See the full list of React Transform patrons.](PATRONS.md)\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/gaearon/babel-plugin-react-transform#readme","bugs":{"url":"https://github.com/gaearon/babel-plugin-react-transform/issues"},"license":"MIT"}