Skip to content

Commit

Permalink
WIP Hot reloading via Fast Refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshadfield committed Feb 8, 2024
1 parent 3e0799f commit 7e3f7e2
Show file tree
Hide file tree
Showing 7 changed files with 685 additions and 152 deletions.
3 changes: 1 addition & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ module.exports = function babelConfig(api) {
"lodash"
];
if (api.env("development")) {
// XXX FIXME react-18
// plugins.push(["react-hot-loader/babel", { safetyNet: false }]);
plugins.push("react-refresh/babel")
}
if (process.env.BABEL_INCLUDE_TIMING_FUNCTIONS === "false") {
plugins.push(["strip-function-call", {strip: ["timerStart", "timerEnd"]}]);
Expand Down
2 changes: 1 addition & 1 deletion cli/develop.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const run = (args) => {

app.use((webpackDevMiddleware)(
compiler,
{logLevel: 'warn', publicPath: webpackConfig.output.publicPath}
{publicPath: webpackConfig.output.publicPath}
));
app.use((webpackHotMiddleware)(
compiler,
Expand Down
Loading

0 comments on commit 7e3f7e2

Please sign in to comment.