diff --git a/packages/cli/src/lib/bundler/config.ts b/packages/cli/src/lib/bundler/config.ts index 6698e8e16d..04a9b5aa6c 100644 --- a/packages/cli/src/lib/bundler/config.ts +++ b/packages/cli/src/lib/bundler/config.ts @@ -167,6 +167,9 @@ export async function createConfig( performance: { hints: false, // we check the gzip size instead }, + // Workaround for hot module reloads not working, will be fixed in webpack-dev-server v4 + // https://github.com/webpack/webpack-dev-server/issues/2758 + target: 'web', devtool: isDev ? 'eval-cheap-module-source-map' : 'source-map', context: paths.targetPath, entry: [require.resolve('react-hot-loader/patch'), paths.targetEntry],