Add lifecycle hooks, add typescript types, run prettier
hey, thanks for a neat project. i'm messing around with building a hot reloading test runner and i needed some lifecycle hooks to know what was going on. i also added some types and ran it thru prettier.
Thanks Pete! Could you add prettier config you used so that future edits are consistent?
Also if "onReloaded" hook is not part of webpack HMR api we need to add a line to readme ( index.d.ts is also great as documentation, thanks for adding that! )
will try to get to that this weekend :)
@sidorares would you accept a PR to typescript-ify this project?
would you accept a PR to typescript-ify this project?
yes, as long as it's still usable from vanilla js projects.
I also have plans to add proper ejs hooks via vm.Module but never have enough time to do that and whenever I return all my research is outdated