about summary refs log tree commit diff
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 28e5ca0db..7515db8e9 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,5 +1,6 @@
 const createExpoWebpackConfigAsync = require('@expo/webpack-config')
 const {withAlias} = require('@expo/webpack-config/addons')
+const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin')
 
 const reactNativeWebWebviewConfiguration = {
   test: /postMock.html$/,
@@ -22,5 +23,8 @@ module.exports = async function (env, argv) {
     ...(config.module.rules || []),
     reactNativeWebWebviewConfiguration,
   ]
+  if (env.mode === 'development') {
+    config.plugins.push(new ReactRefreshWebpackPlugin())
+  }
   return config
 }