Skip to content

Commit

Permalink
Avoid bundling the react-hot-loader patch in production (#1605)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraenhansen authored Nov 24, 2023
1 parent 6a080ad commit e279f5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

### Fixed

- None
- Fixed loading the greeting window. ([#1605](https://github.com/realm/realm-studio/pull/1605))

### Internals

Expand Down
4 changes: 3 additions & 1 deletion configs/webpack.renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ module.exports = (env, argv) => {

return merge(baseConfig, {
entry: {
renderer: ['react-hot-loader/patch', './src/renderer.tsx'],
renderer: isDevelopment
? ['react-hot-loader/patch', './src/renderer.tsx']
: './src/renderer.tsx',
sentry: './src/sentry.ts',
},
module: {
Expand Down

0 comments on commit e279f5c

Please sign in to comment.