Skip to content

Commit

Permalink
fix(esbuild): provide JSModuleInfo of output bundle (#2685)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard committed May 20, 2021
1 parent 40062b8 commit 233254d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/esbuild/esbuild.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 233254d

Please sign in to comment.