Skip to content

Commit

Permalink
fix: remove fast refresh for webpack 4
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Mar 12, 2021
1 parent e68af56 commit c1e1f49
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions examples/react-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,13 @@
"@babel/preset-react": "^7.12.10",
"@babel/preset-typescript": "^7.12.7",
"@babel/runtime": "^7.13.9",
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
"@types/react": "^17.0.2",
"@types/react-dom": "^17.0.1",
"babel-loader": "^8.2.2",
"clean-webpack-plugin": "^3.0.0",
"copy-webpack-plugin": "^7.0.0",
"create-file-webpack": "^1.0.2",
"html-webpack-plugin": "^5.2.0",
"react-refresh": "^0.9.0",
"typescript": "^3.9.3",
"webpack": "^4.46.0",
"webpack-bundle-analyzer": "^4.4.0",
Expand Down
3 changes: 0 additions & 3 deletions examples/react-webpack/webpack.dev.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
const {
withComponentControls,
} = require('@component-controls/react-router-integration/webpack-build');
Expand All @@ -26,7 +25,6 @@ const config = {
use: {
loader: 'babel-loader',
options: {
plugins: [require.resolve('react-refresh/babel')],
presets: [
'@babel/preset-env',
'@babel/preset-react',
Expand All @@ -45,7 +43,6 @@ const config = {
template: 'src/index.html',
}),
new webpack.HotModuleReplacementPlugin(),
new ReactRefreshWebpackPlugin(),
],
devtool: 'inline-source-map',
devServer: {
Expand Down

0 comments on commit c1e1f49

Please sign in to comment.