Skip to content

Commit

Permalink
chore(esbuild): update esbuild version to 0.12.1 (#2696)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattem authored May 25, 2021
1 parent ceddd1d commit 936ed97
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions examples/esbuild/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ http_archive(
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.5.0/rules_nodejs-3.5.0.tar.gz"],
)

_ESBUILD_VERSION = "0.11.14"
_ESBUILD_VERSION = "0.12.1"

http_archive(
name = "esbuild_darwin",
build_file_content = """exports_files(["bin/esbuild"])""",
sha256 = "81c8623c4c03a1fc449c37a90dd630025e334d312420d42106a899f78bd5e3fe",
sha256 = "efb34692bfa34db61139eb8e46cd6cf767a42048f41c8108267279aaf58a948f",
strip_prefix = "package",
urls = [
"https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-%s.tgz" % _ESBUILD_VERSION,
Expand All @@ -40,7 +40,7 @@ http_archive(
http_archive(
name = "esbuild_windows",
build_file_content = """exports_files(["esbuild.exe"])""",
sha256 = "d977751550550099cb9deb95d3fc436c21374b3875131589dde162dfb1c03bf4",
sha256 = "10439647b11c7fd1d9647fd98d022fe2188b4877d2d0b4acbe857f4e764b17a9",
strip_prefix = "package",
urls = [
"https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-%s.tgz" % _ESBUILD_VERSION,
Expand All @@ -50,7 +50,7 @@ http_archive(
http_archive(
name = "esbuild_linux",
build_file_content = """exports_files(["bin/esbuild"])""",
sha256 = "fbf8d42fbd12d2392893a5d8cea3860e875c47ee715660e844dff822b8747321",
sha256 = "de8409b90ec3c018ffd899b49ed5fc462c61b8c702ea0f9da013e0e1cd71549a",
strip_prefix = "package",
urls = [
"https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-%s.tgz" % _ESBUILD_VERSION,
Expand Down
8 changes: 4 additions & 4 deletions packages/esbuild/esbuild_repo.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Helper macro for fetching esbuild versions for internal tests and examples in ru

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

_VERSION = "0.11.14"
_VERSION = "0.12.1"

def esbuild_dependencies():
"""Helper to install required dependencies for the esbuild rules"""
Expand All @@ -20,7 +20,7 @@ def esbuild_dependencies():
],
strip_prefix = "package",
build_file_content = """exports_files(["bin/esbuild"])""",
sha256 = "81c8623c4c03a1fc449c37a90dd630025e334d312420d42106a899f78bd5e3fe",
sha256 = "efb34692bfa34db61139eb8e46cd6cf767a42048f41c8108267279aaf58a948f",
)
http_archive(
name = "esbuild_windows",
Expand All @@ -29,7 +29,7 @@ def esbuild_dependencies():
],
strip_prefix = "package",
build_file_content = """exports_files(["esbuild.exe"])""",
sha256 = "d977751550550099cb9deb95d3fc436c21374b3875131589dde162dfb1c03bf4",
sha256 = "10439647b11c7fd1d9647fd98d022fe2188b4877d2d0b4acbe857f4e764b17a9",
)
http_archive(
name = "esbuild_linux",
Expand All @@ -38,5 +38,5 @@ def esbuild_dependencies():
],
strip_prefix = "package",
build_file_content = """exports_files(["bin/esbuild"])""",
sha256 = "fbf8d42fbd12d2392893a5d8cea3860e875c47ee715660e844dff822b8747321",
sha256 = "de8409b90ec3c018ffd899b49ed5fc462c61b8c702ea0f9da013e0e1cd71549a",
)
8 changes: 4 additions & 4 deletions packages/esbuild/index.docs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ yarn add -D @bazel/esbuild
Add an `http_archive` fetching the esbuild binary for each platform that you need to support.
```python
_ESBUILD_VERSION = "0.11.14" # reminder: update SHAs below when changing this value
_ESBUILD_VERSION = "0.12.1" # reminder: update SHAs below when changing this value
http_archive(
name = "esbuild_darwin",
urls = [
"https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-%s.tgz" % _ESBUILD_VERSION,
],
strip_prefix = "package",
build_file_content = \"""exports_files(["bin/esbuild"])\""",
sha256 = "81c8623c4c03a1fc449c37a90dd630025e334d312420d42106a899f78bd5e3fe",
sha256 = "efb34692bfa34db61139eb8e46cd6cf767a42048f41c8108267279aaf58a948f",
)
http_archive(
Expand All @@ -37,7 +37,7 @@ http_archive(
],
strip_prefix = "package",
build_file_content = \"""exports_files(["esbuild.exe"])\""",
sha256 = "d977751550550099cb9deb95d3fc436c21374b3875131589dde162dfb1c03bf4",
sha256 = "10439647b11c7fd1d9647fd98d022fe2188b4877d2d0b4acbe857f4e764b17a9",
)
http_archive(
Expand All @@ -47,7 +47,7 @@ http_archive(
],
strip_prefix = "package",
build_file_content = \"""exports_files(["bin/esbuild"])\""",
sha256 = "fbf8d42fbd12d2392893a5d8cea3860e875c47ee715660e844dff822b8747321",
sha256 = "de8409b90ec3c018ffd899b49ed5fc462c61b8c702ea0f9da013e0e1cd71549a",
)
```
Expand Down
2 changes: 1 addition & 1 deletion packages/esbuild/test/alias-mapping/bundle.golden.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", {value, configurable: true});
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });


var getId = /* @__PURE__ */ __name(() => "module-one", "getId");
Expand Down
2 changes: 1 addition & 1 deletion packages/esbuild/test/typescript/bundle.golden.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", {value, configurable: true});
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });


var getId = /* @__PURE__ */ __name(() => "dynamic-id", "getId");
Expand Down
2 changes: 1 addition & 1 deletion packages/esbuild/test/workspace-mapping/bundle.golden.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", {value, configurable: true});
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });


var getId = /* @__PURE__ */ __name(() => "module-one", "getId");
Expand Down

0 comments on commit 936ed97

Please sign in to comment.