From 233254dff8f88f677e24aa60624dc4a7d527a782 Mon Sep 17 00:00:00 2001 From: Jason Bedard Date: Thu, 20 May 2021 06:41:12 -0700 Subject: [PATCH] fix(esbuild): provide JSModuleInfo of output bundle (#2685) --- packages/esbuild/esbuild.bzl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/esbuild/esbuild.bzl b/packages/esbuild/esbuild.bzl index cad851ac5a..7bc2054a12 100644 --- a/packages/esbuild/esbuild.bzl +++ b/packages/esbuild/esbuild.bzl @@ -149,8 +149,14 @@ def _esbuild_impl(ctx): tools = [ctx.executable.tool], ) + outputs_depset = depset(outputs) + return [ - DefaultInfo(files = depset(outputs)), + DefaultInfo(files = outputs_depset), + JSModuleInfo( + direct_sources = outputs_depset, + sources = outputs_depset, + ), ] esbuild = rule(