From 18641f75f441a4db59652e0c22d32076755481b7 Mon Sep 17 00:00:00 2001 From: Matt Mackay Date: Mon, 22 Mar 2021 21:11:12 -0400 Subject: [PATCH] fix(esbuild): allow empty string as an input to sourcemap for bazel 2.x support --- packages/esbuild/esbuild.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/esbuild/esbuild.bzl b/packages/esbuild/esbuild.bzl index 461c38f3a7..ca64ee6694 100644 --- a/packages/esbuild/esbuild.bzl +++ b/packages/esbuild/esbuild.bzl @@ -225,7 +225,7 @@ See https://esbuild.github.io/api/#platform for more details """, ), "sourcemap": attr.string( - values = ["external", "inline", "both"], + values = ["external", "inline", "both", ""], mandatory = False, doc = """Defines where sourcemaps are output and how they are included in the bundle. By default, a separate `.js.map` file is generated and referenced by the bundle. If 'external', a separate `.js.map` file is generated but not referenced by the bundle. If 'inline', a sourcemap is generated and its contents are inlined into the bundle (and no external sourcemap file is created). If 'both', a sourcemap is inlined and a `.js.map` file is created.