-
-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: spawning too many esbuilds builds (#491)
* Fix spawning multiple esbuilds on same file, that would cause memory usage to spike. According to documentation of the changes in esbuild 0.17, calling rebuild on the same build params is “safe” in the sense that it would merge it into an existing build rather then spawn a new one. Furthermore, the contexes of these rebuilds are now needed to be disposed of. That was the original issue that made me use build over the rebuild - in the initial import of esbuild 19, running serverless invoke and serverless package would never finish. Using build seemingly solved this, but it ended up causing the issue spawning too many builds described above. I added a step on finishing invoking, deploying and packaging to make sure to dispose of the contexes. * Use build if there is no context * Proper naming
- Loading branch information
1 parent
2eb287a
commit 36ef92e
Showing
2 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters