Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Improve code reloading with unbundled JS functions in multiple files #167

Closed
mjm opened this issue Apr 26, 2019 · 1 comment
Closed

Improve code reloading with unbundled JS functions in multiple files #167

mjm opened this issue Apr 26, 2019 · 1 comment

Comments

@mjm
Copy link

mjm commented Apr 26, 2019

- Do you want to request a feature or report a bug?

Feature (maybe a bug depending on currently intended behavior)

- What is the current behavior?

netlify dev with unbundled functions does not seem to reload code for local require()'d Node modules, but it would be nice if it did! 😄

I'm not sure, but I think it reloads the main .js file with the handler export, but if you factor out code into separate files, then you lose the reloading behavior and have to restart netlify dev to see your changes. Especially for Gatsby sites (which take a while to process), this really slows down development compared to using webpack with netlify-lambda.

- Please mention your node.js, and operating system version.

Node 11.13.0, macOS 10.14.4

@swyxio
Copy link
Contributor

swyxio commented Apr 26, 2019

agreed. you’re right about our file watch strategy. pr welcome, and/or we will do this once we hire someone fulltime

@swyxio swyxio closed this as completed in 9e76272 May 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants