Releases: milankinen/livereactload
Releases · milankinen/livereactload
3.5.0
3.4.0
4.0.0-beta.2
4.0.0-beta.1
This is the first beta version of 4.x
series (many thanks to @EugeneZ who's the author of these changes)
Starting from 4.0.0-beta.1
, LiveReactload will be using react-hot-loader
as its hot reloading component. This approach allows us to keep up with the newest work of react-hot-loader
community, providing better developer experience to you Browserify users. From now on, react-hot-loader
bug fixes and middleware (such as e.g. react-redbox
) can be used with LiveReactload just like they can be used with Webpack HMR.
In order to migrate your 3.x
LiveReactload application to the new version, you must apply the following steps:
- Remove
react-proxy
andbabel-plugin-react-transform
dependencies frompackage.json
usingnpm uninstall
oryarn remove
- Use
npm install
oryarn add
to get the latestlivereactload
andreact-hot-loader
packages. - Replace the
react-transform
section of your Babel config withreact-hot-loader/babel
. See installation instructions for how the config should look now. (It's must simpler.) - Add
import { AppContainer} from 'react-hot-loader'
to the file where you render your root component, and then wrap your root component in this container.ReactDOM.render(<App/>, ...)
becomes
ReactDOM.render(<AppContainer><App></AppContainer>, ...)
. - If you were using
module.onReload
it must be replaced withmodule.hot.onUpdate
. This isn't simply a rename, this hook works differently now. Despite this, if you were following the commonly used patterns for this hook in the LiveReactload examples, simply renaming it should work just fine.
The full documentation and examples of the new version are available here.
3.3.0
3.2.0
3.1.2
3.1.1
- Fix source maps #127 #138 (thanks @EugeneZ!)
- Fix Github issue link (thanks @NestorTejero!)
3.1.0
3.0.1
- Support excluded modules #131 (thanks @hiddentao)