Any chance it was fixed yet the ability to use a h...
# help
d
Any chance it was fixed yet the ability to use a handler in a
sst.Function
for liveEditing that is located inside node_modules folder? Right now I have it working but since its not watching files in the nodemodules folder… I need to restart
sst start
each time. 😞
t
No we haven't supported this yet. Would a symlink work? Not sure if watchers work on those
d
maybe? not sure how I should set that up
d
It does not. I have never seen a hot reloader not ignore the node_modules folder before, I am assuming there is a reason related to performance.
d
@Derek Kershner even if you symlink?
so that the file appears to be in a root folder of the project
t
yeah I had initially forgotton to ignore node_modules and people were having terrible performance on certain OS's
d
If you are gonna have to change all your imports to do your testing anyway, perhaps you should just copy and paste the handler rather than symlinking to a built JS version to save the need to build…but I dont see why it wouldnt work.
t
some OS watchers need you to watch every single file in ad directory and node modules can have a million files
d
but in reality, I would suggest just testing whatever this lib is in its home for the scenario you are painting outside its home. general advice, but I have no context.
d
You’re likely right. I’m still getting a handle on the best workflow