Skip to content
Snippets Groups Projects
Commit efcc5f3d authored by Jack Reed's avatar Jack Reed Committed by Chris Beer
Browse files

Replace react-hot-loader with react-refresh

parent 6cf20fef
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,6 @@ module.exports = function (api) {
],
},
],
isDevelopmentEnv && 'react-hot-loader/babel',
].filter(Boolean);
return {
......
import React, { Component, lazy, Suspense } from 'react';
import { hot } from 'react-hot-loader/root';
import PropTypes from 'prop-types';
import PluginProvider from '../extend/PluginProvider';
import AppProviders from '../containers/AppProviders';
......@@ -46,4 +45,4 @@ App.defaultProps = {
plugins: [],
};
export default hot(App);
export default App;
const path = require('path');
const webpack = require('webpack');
const TerserPlugin = require('terser-webpack-plugin');
const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
const paths = require('./config/paths');
/** */
......@@ -82,7 +83,11 @@ module.exports = (env, options) => {
port: 4444,
},
devtool: 'eval-source-map',
entry: ['react-hot-loader/patch', './src/polyfills.js', './src/init.js'],
entry: ['./src/polyfills.js', './src/init.js'],
mode: 'development',
plugins: [
...(config.plugins || []),
new ReactRefreshWebpackPlugin(),
],
};
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment