-
Share reference-counted service instances internally (#600)
Now calling
startService()
multiple times will share the underlying esbuild child process as long as the lifetimes of the service objects overlap (i.e. the time fromstartService()
toservice.stop()
). This is just an internal change; there is no change to the public API. It should result in a faster implementation that uses less memory if your code callsstartService()
multiple times. Previously each call tostartService()
generated a separate esbuild child process. -
Fix re-exports of a side-effect free CommonJS module (#605)
This release fixes a regression introduced in version 0.8.19 in which an
import
of anexport {...} from
re-export of a CommonJS module does not include the CommonJS module if it has been marked as"sideEffect": false
in itspackage.json
file. This was the case with the Ramda library, and was due to an unhandled case in the linker. -
Optionally take binary executable path from environment variable (#592)
You can now set the
ESBUILD_BINARY_PATH
environment variable to cause the JavaScript API to use a different binary executable path. This is useful if you want to substitute a modified version of theesbuild
binary that contains some extra debugging information.