- Fix where
react-hot-loader
is loaded from, it should be loaded from the target dir
- Rename the
--no-hot
shorthand from-h
to-r
, to reclaim-h
for help info - Fix
jetpack.config.js#hot
option, it wasn't being read from options since cli arg was always defaulting tofalse
- No longer refresh the page if webpack hot patch is not accepted, for nicer user experience. It's still possible to configure page reloading with manual config override using
jetpack.config.js#webpack
. - Improve hot reloading support.
react-hot-loader
has been removed from jetpack. User's of jetpack now need to installreact-hot-loader
to opt into using it. Webpack config has been updated to work with[email protected]
which supports React Hooks out of the box and improves the overall experience.
To use this you first need to install react-hot-loader
with npm i -D react-hot-loader
and then update the code from:
import { hot } from 'jetpack/react-hot-loader'
const App = () => <div>Hello World!</div>
export default hot(module)(App)
to
import { hot } from 'react-hot-loader/root'
const App = () => <div>Hello World!</div>
export default hot(App)
- Upgrade css-loader to 2.0.0. This upgrades it's dependency on PostCSS to v7, which means there's only one version of PostCSS being used by jetpack, which means faster install times and better performance.
- Fix
jetpack/serve
production mode, serve index.html if requested pathname does not exist in dist
- Remove console.log from the jetpack/serve module
- Fix
jetpack inspect
command - Fix
proxy
to properly handle node's req and res - Fix compatibility
- Fix
react-hot-loader
to work even when jetpack not installed locally - Fix
proxy
to work with non express servers - Only configure
react-hot-loader
if hot reloading is enabled and react is installed
Everything changed. Apologies if it broke your project. See the README and docs to learn about all the new features, command line args and configuration options.