Skip to content

Commit

Permalink
- fixes blank page
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskovar-m2ms committed Nov 16, 2023
1 parent 61f7e6d commit d5c9709
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
7 changes: 2 additions & 5 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": [
[
"@babel/plugin-proposal-decorators",
Expand All @@ -11,7 +8,7 @@
},
"@babel/plugin-proposal-optional-chaining"
],
"react-refresh/babel",
// "react-refresh/babel",
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-syntax-import-meta",
"@babel/plugin-proposal-class-properties",
Expand Down
14 changes: 7 additions & 7 deletions webpack.config-dev.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require('path');
const webpack = require('webpack');
const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
// const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
const BundleTracker = require('webpack-bundle-tracker');
const ErrorOverlayPlugin = require('error-overlay-webpack-plugin');
const Dotenv = require('dotenv-webpack');
Expand Down Expand Up @@ -42,8 +42,8 @@ module.exports = {
new webpack.NamedModulesPlugin(),
new webpack.HotModuleReplacementPlugin(),
new webpack.NoEmitOnErrorsPlugin(), // don't reload if there is an error
new Dotenv(),
new ReactRefreshWebpackPlugin()
new Dotenv()
// new ReactRefreshWebpackPlugin()
],

module: {
Expand All @@ -53,10 +53,10 @@ module.exports = {
enforce: 'pre',
exclude: /node_modules/,
use: {
loader: require.resolve('babel-loader'),
options: {
plugins: [require.resolve('react-refresh/babel')].filter(Boolean)
}
loader: require.resolve('babel-loader')
// options: {
// plugins: [require.resolve('react-refresh/babel')].filter(Boolean)
// }
}
},
{ test: /\.css$/, loader: 'style-loader!css-loader' },
Expand Down

0 comments on commit d5c9709

Please sign in to comment.