serverless-esbuild icon indicating copy to clipboard operation
serverless-esbuild copied to clipboard

Why does it rebuilds everytime I save without any changes?

Open rad182 opened this issue 3 years ago • 1 comments

Describe the bug I'm running with serverless-offline but when I save in my vscode it automatically rebuilds without any code change. I do have a habit spamming save shortcut key it rebuilds on another process.

To Reproduce

https://user-images.githubusercontent.com/71201/201933001-7c87167d-5928-44b5-bad6-a9a3e4847afe.mp4

For this video I'm using the example. its not quite noticeable because of small project. if there's alot of typescript files the build takes around 5-8 secs for my project and most of the time my machine lags out

Expected behavior Should not rebuild? or perhaps limit to only one build process?

  • OS: Mac M1
  • Serverless Framework Version: 3.23.0
  • Plugin Version: 1.33.1
  • serverless-offline: 11.3.0

rad182 avatar Nov 15 '22 09:11 rad182

@rad182 could it be that your files are located in a folder synced with iCloud? I once encountered the same issue and it turned out the problem was that iCloud synchronization caused infinite rebuild.

floydspace avatar Nov 26 '22 12:11 floydspace