Skip to content

Commit

Permalink
"ESBUILD_BINARY_PATH" release notes (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Dec 18, 2020
1 parent b1cb605 commit 5d7a503
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

This release fixes a regression introduced in version 0.8.19 in which an `import` of an `export {...} from` re-export of a CommonJS module does not include the CommonJS module if it has been marked as `"sideEffect": false` in its `package.json` file. This was the case with the [Ramda](https://ramdajs.com/) library, and was due to an unhandled case in the linker.

* Optionally take binary executable path from environment variable ([#592](https://github.com/evanw/esbuild/issues/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 the `esbuild` binary that contains some extra debugging information.

## 0.8.23

* Fix non-string objects being passed to `transformSync` ([#596](https://github.com/evanw/esbuild/issues/596))
Expand Down
3 changes: 3 additions & 0 deletions lib/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ declare const ESBUILD_VERSION: string;
declare const WASM: boolean;

let esbuildCommandAndArgs = (): [string, string[]] => {
// This feature was added to give external code a way to modify the binary
// path without modifying the code itself. Do not remove this because
// external code relies on this.
if (process.env.ESBUILD_BINARY_PATH) {
return [path.resolve(process.env.ESBUILD_BINARY_PATH), []];
}
Expand Down

0 comments on commit 5d7a503

Please sign in to comment.