Skip to content

Restart files and bugfixes

Choose a tag to compare

@Julien-R44 Julien-R44 released this 27 Apr 11:16
· 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 .env file was changed, for example. This is because .env files 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 restart property in the config that allows you to specify which files should trigger a full reload. By default, restart will be equal to ['.env'].

    // package.json
    {
      "hotHook": {
        "restart": [".env", "./config/foo.yaml"]
      }
    }