darul75/express-hot-reload

acceptedDependecies cannot be directly in accept()?

Opened this issue · 0 comments

Just found a weird bug. My routes weren't registering after erasing. Found out that writing module.hot.accept(['./myroutes']) doesn't work, and var myroutes = ['./myroutes']; module.hot.accept(myroutes) does. Why would this be?