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

Conversation

@crowecawcaw
Copy link
Contributor

- Summary
Changes the file watching mechanism to watch all files in the functions folder. Whenever any file is updated or removed, require.cache is cleared so the changes go live. This change enables hot reloading for functions with multiple files.

- Test plan

Run netlify dev and modify a file required by a function. In the console, a message will appear that the file was modified and the new code will be run correctly.

- Description for the changelog

Enable hot reloading for unbundled functions with multiple files

@swyxio
Copy link
Contributor

swyxio commented May 4, 2019

awesome! thank you

@swyxio
Copy link
Contributor

swyxio commented May 8, 2019

i plain forgot to merge this PR, sorry for the delay. doing now!

@swyxio swyxio merged commit 9e76272 into netlify:master May 8, 2019
@swyxio
Copy link
Contributor

swyxio commented May 8, 2019

cli v2.11.17

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants