Restart files and bugfixes
·
39 commits
to main
since this release
0.2.4
Patch Changes
-
7d4a8bc: Fix: should use default values when configured through --import=hot-hook/register
-
07cadde: The HMR was a bit broken in some situations due to a change introduced by 117f9c1. This has been fixed and tests have been added to prevent it happening again.
-
0ade4eb: One of the problems we encountered was that Hot Hook didn't send a full reload message when a
.envfile was changed, for example. This is because.envfiles are not javascript modules, and so are not processed by Hot Hook nor added to the dependency graph.As a result, this commit introduces a
restartproperty in the config that allows you to specify which files should trigger a full reload. By default,restartwill be equal to['.env'].// package.json { "hotHook": { "restart": [".env", "./config/foo.yaml"] } }