diff --git a/packages/esbuild/esbuild.bzl b/packages/esbuild/esbuild.bzl index a17f1b9991..312d7cf889 100644 --- a/packages/esbuild/esbuild.bzl +++ b/packages/esbuild/esbuild.bzl @@ -55,7 +55,6 @@ def _esbuild_impl(ctx): args.add("--bundle", entry_point.path) args.add("--sourcemap") - args.add("--keep-names") args.add("--preserve-symlinks") args.add_joined(["--platform", ctx.attr.platform], join_with = "=") args.add_joined(["--target", ctx.attr.target], join_with = "=") diff --git a/packages/esbuild/test/alias-mapping/BUILD.bazel b/packages/esbuild/test/alias-mapping/BUILD.bazel index 2e6d1f0e46..ad015e587e 100644 --- a/packages/esbuild/test/alias-mapping/BUILD.bazel +++ b/packages/esbuild/test/alias-mapping/BUILD.bazel @@ -3,6 +3,7 @@ load("//packages/esbuild/test:tests.bzl", "esbuild") esbuild( name = "bundle", + args = ["--keep-names"], entry_point = "main.js", format = "esm", deps = [ diff --git a/packages/esbuild/test/bundle/BUILD.bazel b/packages/esbuild/test/bundle/BUILD.bazel index 802e1dcfce..e491106da4 100644 --- a/packages/esbuild/test/bundle/BUILD.bazel +++ b/packages/esbuild/test/bundle/BUILD.bazel @@ -16,12 +16,14 @@ ts_library( esbuild( name = "bundle", + args = ["--keep-names"], entry_point = "a.ts", deps = [":lib"], ) esbuild( name = "bundle.min", + args = ["--keep-names"], entry_point = "a.ts", minify = True, deps = [":lib"], @@ -29,6 +31,7 @@ esbuild( esbuild( name = "bundle.split", + args = ["--keep-names"], entry_point = "a.ts", output_dir = True, deps = [":lib"], diff --git a/packages/esbuild/test/define/BUILD.bazel b/packages/esbuild/test/define/BUILD.bazel index bd894ab8fa..a6dca40447 100644 --- a/packages/esbuild/test/define/BUILD.bazel +++ b/packages/esbuild/test/define/BUILD.bazel @@ -14,6 +14,7 @@ ts_library( esbuild( name = "bundle", + args = ["--keep-names"], define = [ "process.env.NODE_ENV=\"defined_in_bundle\"", ], diff --git a/packages/esbuild/test/external-flag/BUILD.bazel b/packages/esbuild/test/external-flag/BUILD.bazel index 886a80397e..705c02e540 100644 --- a/packages/esbuild/test/external-flag/BUILD.bazel +++ b/packages/esbuild/test/external-flag/BUILD.bazel @@ -14,6 +14,7 @@ ts_library( esbuild( name = "bundle", + args = ["--keep-names"], entry_point = "main.ts", external = [ "fs", diff --git a/packages/esbuild/test/splitting/BUILD.bazel b/packages/esbuild/test/splitting/BUILD.bazel index f63a562c2c..7b0f622bff 100644 --- a/packages/esbuild/test/splitting/BUILD.bazel +++ b/packages/esbuild/test/splitting/BUILD.bazel @@ -16,6 +16,7 @@ ts_library( esbuild( name = "bundle", + args = ["--keep-names"], entry_point = "main.ts", output_dir = True, deps = [":main"], diff --git a/packages/esbuild/test/typescript/BUILD.bazel b/packages/esbuild/test/typescript/BUILD.bazel index f5e4efae23..16ca26eab4 100644 --- a/packages/esbuild/test/typescript/BUILD.bazel +++ b/packages/esbuild/test/typescript/BUILD.bazel @@ -19,6 +19,7 @@ ts_library( esbuild( name = "bundle", + args = ["--keep-names"], entry_point = "main.ts", format = "esm", deps = [":main"], diff --git a/packages/esbuild/test/workspace-mapping/BUILD.bazel b/packages/esbuild/test/workspace-mapping/BUILD.bazel index 1210edcda8..7d4f7d5f5d 100644 --- a/packages/esbuild/test/workspace-mapping/BUILD.bazel +++ b/packages/esbuild/test/workspace-mapping/BUILD.bazel @@ -3,6 +3,7 @@ load("//packages/esbuild/test:tests.bzl", "esbuild") esbuild( name = "bundle", + args = ["--keep-names"], entry_point = "main.js", format = "esm", link_workspace_root = True,