Skip to content

Commit

Permalink
Fix webpack hmr
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvdv committed Jun 17, 2022
1 parent 89f424a commit 038b763
Show file tree
Hide file tree
Showing 5 changed files with 178 additions and 68 deletions.
4 changes: 2 additions & 2 deletions .babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ module.exports = {
plugins: [
['@babel/plugin-proposal-decorators', { legacy: true }],
['@babel/proposal-class-properties', { legacy: true }],
'react-hot-loader/babel',
[
'const-enum',
{
Expand All @@ -39,7 +38,8 @@ module.exports = {
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-optional-catch-binding',
],
process.env.NODE_ENV === 'development' && 'react-refresh/babel',
].filter(Boolean),
env: {
production: {
presets: ['minify'],
Expand Down
230 changes: 169 additions & 61 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 038b763

Please sign in to comment.