Skip to content

Hot reloading not reliable #23

@zigomir

Description

@zigomir

Hi! First thanks for this rally fine separation of micro and micro-dev, I think it's neat!

Now while using mico-dev it happens to me pretty often that it won't pick up file changes. (I'm using node v8.3.0 on latest macOS).

Usually first file changes are recognized and server is restarted but after a while it just stops re-starting.

Simplest way to reproduce I found up until now is to open index.js file in any editor and just keep saving it (or just hold down cmd + s for few seconds). After few saves micro-dev will stop restarting a server. (It happens also when normally editing code and saving).

package.json

{
  "name": "micro-dev-restart-issue",
  "main": "index.js",
  "scripts": {
    "dev": "micro-dev"
  },
  "devDependencies": {
    "micro-dev": "^1.2.0"
  }
}

index.js

exports.default = (req, res) => {
  res.end('hey')
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions