When modules aren't hoisted, webpackHotDevClient is in node_modules/react-scripts/node_modules/react-dev-utils, so we need to resolve relative to the original loaded file.
While I was there, I incorporated the changes to the latest hot client from upstream, and annotated modifications for ease of use next time around.
When modules aren't hoisted,
webpackHotDevClient
is innode_modules/react-scripts/node_modules/react-dev-utils
, so we need to resolve relative to the original loaded file.While I was there, I incorporated the changes to the latest hot client from upstream, and annotated modifications for ease of use next time around.
Fixes #69.