@k88/cra-webpack-hot-dev-client
Taken from react-dev-utils, but is published as a standalone plugin and has Typescript definition.
Installation
Install using
npm install @k88/cra-webpack-hot-dev-client
Usage
Add the path to webpack entry
:
module.exports = {
/* webpack configuration */
entry: [
isDev && require.resolve('@k88/cra-webpack-hot-dev-client'),
/* Other entry paths */
],
};