{"_id":"react-hot-loader-loader","_rev":"295529","name":"react-hot-loader-loader","description":"Webpack Loader to use react-hot-loader without any changes in your App","dist-tags":{"latest":"0.0.7"},"maintainers":[{"name":"noamelb","email":"noam@mail.com"}],"time":{"modified":"2021-06-03T18:57:26.000Z","created":"2018-01-17T20:11:49.320Z","0.0.7":"2018-12-22T12:59:01.101Z","0.0.6":"2018-05-15T18:20:25.878Z","0.0.5":"2018-03-13T06:55:21.236Z","0.0.4":"2018-03-07T13:01:36.863Z","0.0.3":"2018-01-23T13:44:38.980Z","0.0.2":"2018-01-20T11:50:19.015Z","0.0.1":"2018-01-17T20:11:49.320Z"},"users":{},"author":{"name":"NoamELB"},"repository":{"type":"git","url":"git+https://github.com/NoamELB/react-hot-loader-loader.git"},"versions":{"0.0.7":{"name":"react-hot-loader-loader","version":"0.0.7","description":"Webpack Loader to use react-hot-loader without any changes in your App","main":"webpack.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/NoamELB/react-hot-loader-loader.git"},"keywords":["React","HMR","Webpack","Loader"],"author":{"name":"NoamELB"},"license":"MIT","bugs":{"url":"https://github.com/NoamELB/react-hot-loader-loader/issues"},"homepage":"https://github.com/NoamELB/react-hot-loader-loader#readme","devDependencies":{"jest":"^23.6.0"},"peerDependencies":{"react-hot-loader":">= 4.0.0"},"gitHead":"3b049e87ebb8e8dc228e9b6ad828724ad5fca254","_id":"react-hot-loader-loader@0.0.7","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"noamelb","email":"noam@mail.com"},"dist":{"shasum":"0c43e3e63d63d17cf74c5d03aafa57cc9c4fd88d","size":2708,"noattachment":false,"key":"/react-hot-loader-loader/-/react-hot-loader-loader-0.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-hot-loader-loader/download/react-hot-loader-loader-0.0.7.tgz"},"maintainers":[{"name":"noamelb","email":"noam@mail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hot-loader-loader_0.0.7_1545483540953_0.9112804102851308"},"_hasShrinkwrap":false,"publish_time":1545483541101,"_cnpm_publish_time":1545483541101},"0.0.6":{"name":"react-hot-loader-loader","version":"0.0.6","description":"Webpack Loader to use react-hot-loader without any changes in your App","main":"webpack.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/NoamELB/react-hot-loader-loader.git"},"keywords":["React","HMR","Webpack","Loader"],"author":{"name":"NoamELB"},"license":"MIT","bugs":{"url":"https://github.com/NoamELB/react-hot-loader-loader/issues"},"homepage":"https://github.com/NoamELB/react-hot-loader-loader#readme","devDependencies":{"jest":"^22.4.3"},"peerDependencies":{"react-hot-loader":">= 4.0.0"},"gitHead":"194b934ed8a904967f972dc59015ed018111b3a5","_id":"react-hot-loader-loader@0.0.6","_npmVersion":"5.6.0","_nodeVersion":"8.11.0","_npmUser":{"name":"noamelb","email":"noam@mail.com"},"dist":{"shasum":"f707c538910bebac920a5e550049399c6ff26b23","size":2618,"noattachment":false,"key":"/react-hot-loader-loader/-/react-hot-loader-loader-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-hot-loader-loader/download/react-hot-loader-loader-0.0.6.tgz"},"maintainers":[{"name":"noamelb","email":"noam@mail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hot-loader-loader_0.0.6_1526408425804_0.7011980585783775"},"_hasShrinkwrap":false,"publish_time":1526408425878,"_cnpm_publish_time":1526408425878},"0.0.5":{"name":"react-hot-loader-loader","version":"0.0.5","description":"Webpack Loader to use react-hot-loader without any changes in your App","main":"webpack.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/NoamELB/react-hot-loader-loader.git"},"keywords":["React","HMR","Webpack","Loader"],"author":{"name":"NoamELB"},"license":"MIT","bugs":{"url":"https://github.com/NoamELB/react-hot-loader-loader/issues"},"homepage":"https://github.com/NoamELB/react-hot-loader-loader#readme","devDependencies":{"jest":"^22.1.2"},"peerDependencies":{"react-hot-loader":">= 4.0.0"},"gitHead":"6991c9fec2a6e70bf084ec01b8533866e58e56a6","_id":"react-hot-loader-loader@0.0.5","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"noamelb","email":"noam@mail.com"},"dist":{"shasum":"bcd24d27e15a3041a483c4b9efa3fb3ccc768bce","size":2626,"noattachment":false,"key":"/react-hot-loader-loader/-/react-hot-loader-loader-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-hot-loader-loader/download/react-hot-loader-loader-0.0.5.tgz"},"maintainers":[{"name":"noamelb","email":"noam@mail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hot-loader-loader_0.0.5_1520924121187_0.20380097526368046"},"_hasShrinkwrap":false,"publish_time":1520924121236,"_cnpm_publish_time":1520924121236},"0.0.4":{"name":"react-hot-loader-loader","version":"0.0.4","description":"Webpack Loader to use react-hot-loader without any changes in your App","main":"webpack.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/NoamELB/react-hot-loader-loader.git"},"keywords":["React","HMR","Webpack","Loader"],"author":{"name":"NoamELB"},"license":"MIT","bugs":{"url":"https://github.com/NoamELB/react-hot-loader-loader/issues"},"homepage":"https://github.com/NoamELB/react-hot-loader-loader#readme","devDependencies":{"jest":"^22.1.2"},"dependencies":{"react-hot-loader":"^4.0.0"},"gitHead":"867cb6fa1edf529a1e6d1ad7dad83e8b3472645b","_id":"react-hot-loader-loader@0.0.4","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"noamelb","email":"noam@mail.com"},"dist":{"shasum":"11141bfdd1d838b03ced68b026f7c7c9feab08e4","size":2612,"noattachment":false,"key":"/react-hot-loader-loader/-/react-hot-loader-loader-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-hot-loader-loader/download/react-hot-loader-loader-0.0.4.tgz"},"maintainers":[{"name":"noamelb","email":"noam@mail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hot-loader-loader_0.0.4_1520427696212_0.6285191169106263"},"_hasShrinkwrap":false,"publish_time":1520427696863,"_cnpm_publish_time":1520427696863},"0.0.3":{"name":"react-hot-loader-loader","version":"0.0.3","description":"Webpack Loader to use react-hot-loader without any changes in your App","main":"webpack.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/NoamELB/react-hot-loader-loader.git"},"keywords":["React","HMR","Webpack","Loader"],"author":{"name":"NoamELB"},"license":"MIT","bugs":{"url":"https://github.com/NoamELB/react-hot-loader-loader/issues"},"homepage":"https://github.com/NoamELB/react-hot-loader-loader#readme","devDependencies":{"jest":"^22.1.2"},"dependencies":{"react-hot-loader":"^4.0.0-beta.17"},"gitHead":"4aa2e8a43a326651978a3ff50659d584c36e9b36","_id":"react-hot-loader-loader@0.0.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"noamelb","email":"noam@mail.com"},"dist":{"shasum":"5b2347b58131491690b178cbabfbc209c5a8da76","size":2666,"noattachment":false,"key":"/react-hot-loader-loader/-/react-hot-loader-loader-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-hot-loader-loader/download/react-hot-loader-loader-0.0.3.tgz"},"maintainers":[{"name":"noamelb","email":"noam@mail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hot-loader-loader-0.0.3.tgz_1516715078080_0.5940646370872855"},"directories":{},"publish_time":1516715078980,"_hasShrinkwrap":false,"_cnpm_publish_time":1516715078980},"0.0.2":{"name":"react-hot-loader-loader","version":"0.0.2","description":"Webpack Loader to use react-hot-loader without any changes in your App","main":"webpack.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/NoamELB/react-hot-loader-loader.git"},"keywords":["React","HMR","Webpack","Loader"],"author":{"name":"NoamELB"},"license":"MIT","bugs":{"url":"https://github.com/NoamELB/react-hot-loader-loader/issues"},"homepage":"https://github.com/NoamELB/react-hot-loader-loader#readme","devDependencies":{"jest":"^22.1.2"},"dependencies":{"react-hot-loader":"^4.0.0-beta.15"},"gitHead":"501724042e88e781d94a5f8904ec7b0c59cf5d42","_id":"react-hot-loader-loader@0.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"noamelb","email":"noam@mail.com"},"dist":{"shasum":"d05228c1f880811a8978350be4df6957ce8d276d","size":2664,"noattachment":false,"key":"/react-hot-loader-loader/-/react-hot-loader-loader-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-hot-loader-loader/download/react-hot-loader-loader-0.0.2.tgz"},"maintainers":[{"name":"noamelb","email":"noam@mail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hot-loader-loader-0.0.2.tgz_1516449018937_0.957978893769905"},"directories":{},"publish_time":1516449019015,"_hasShrinkwrap":false,"_cnpm_publish_time":1516449019015},"0.0.1":{"name":"react-hot-loader-loader","version":"0.0.1","description":"Webpack Loader to use react-hot-loader without any changes in your App","main":"webpack.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/NoamELB/react-hot-loader-loader.git"},"keywords":["React","HMR","Webpack","Loader"],"author":{"name":"NoamELB"},"license":"MIT","bugs":{"url":"https://github.com/NoamELB/react-hot-loader-loader/issues"},"homepage":"https://github.com/NoamELB/react-hot-loader-loader#readme","devDependencies":{"jest":"^22.1.2"},"gitHead":"75089f77dfaed910dfe5f01f7c2507b9419e1fdb","_id":"react-hot-loader-loader@0.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"noamelb","email":"noam@mail.com"},"dist":{"shasum":"8fc68a5d701f323aae7ec6457ffa573b2e1aec48","size":1716,"noattachment":false,"key":"/react-hot-loader-loader/-/react-hot-loader-loader-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-hot-loader-loader/download/react-hot-loader-loader-0.0.1.tgz"},"maintainers":[{"name":"noamelb","email":"noam@mail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hot-loader-loader-0.0.1.tgz_1516219908118_0.41473077330738306"},"directories":{},"publish_time":1516219909320,"_hasShrinkwrap":false,"_cnpm_publish_time":1516219909320}},"readme":"# react-hot-loader-loader\n\nA Webpack Loader that automatically inserts react-hot-loader to your app, **without any changes in your app code**.\n\nAll it takes is a simple regex to indicate where your \"App\" Components are. This module does nothing if `NODE_ENV` is set to `production`.\n\nExample:\n\n![react-hot-loader-loader example](https://i.imgur.com/PQDkTdW.gif)\n\n[This example code (A very informative webpack example)](https://github.com/NoamELB/react-hot-loader-loader/tree/master/examples/webpack)\n\n## Usage\n\n1.  Install\n\n```\nnpm i react-hot-loader-loader\n```\n\n2.  In your Webpack configuration, add this loader:\n\n```js\n{\n    test: /\\/App\\.js$/, // regex to match files to receive react-hot-loader functionality\n    loader: require.resolve('react-hot-loader-loader'),\n}\n```\n\nThis loader **must** be placed after any ES6 transpiling loader (Babel), to make sure it transforms the code before it.\n\n3.  Add react-hot-loader to your Babel plugins:\n\n```js\n{\n  \"plugins\": [\"react-hot-loader/babel\"]\n}\n```\n\n[Working project example with HMR, react-hot-loader and error recovery.](https://github.com/NoamELB/react-hot-loader-loader/tree/master/examples/webpack)\n\n**The loader is dependent on react-hot-loader v4+, and won't work with earlier versions**.\n\n## How it works?\n\n[react-hot-loader](https://github.com/gaearon/react-hot-loader) is amazing! It exposes an HOC that does all the heavy lifting. It can wrap any component and will add real time components tweaking functionality while using HMR.\n\nThis Webpack loader just make things cleaner and easier, **wrapping components with this HOC for you**. All that from a Webpack configuration and not from inside Components.\n\nThis component:\n\n```js\nimport React from 'react';\n\nexport default class App extends React.Component {\n    render() {\n        return 'something';\n    }\n}\n```\n\nWill transform to this (before ES6 transpilation):\n\n```js\nimport {hot} from 'react-hot-loader';\nimport React from 'react';\n\nclass App extends React.Component {\n    render() {\n        return 'something';\n    }\n}\nexport default hot(module)(App);\n```\n\n[See the test for many more examples.](https://github.com/NoamELB/react-hot-loader-loader/blob/master/test/exampleFiles.js)\n\n## Pros\n\n*   Easier to control through configuration, just decide a convention and then there is no need for any additional code in an app.\n*   No need to refactor old code.\n*   Allows dynamic control, for example by using a command flag.\n*   You can remove the loader on certain Webpack configurations.\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/NoamELB/react-hot-loader-loader#readme","bugs":{"url":"https://github.com/NoamELB/react-hot-loader-loader/issues"},"license":"MIT"}