Skip to content

Commit

Permalink
fix(esbuild): generate correct path mappings as mappings aspect no lo…
Browse files Browse the repository at this point in the history
…nger produces an array (#2834)
  • Loading branch information
mattem authored Jul 26, 2021
1 parent 0047ded commit b79e3f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/esbuild/esbuild.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _esbuild_impl(ctx):
for key, value in getattr(dep, MODULE_MAPPINGS_ASPECT_RESULTS_NAME).items():
# key is of format "package_name:package_path"
package_name = key.split(":")[0]
path_alias_mappings.update(generate_path_mapping(package_name, value[1].replace(ctx.bin_dir.path + "/", "")))
path_alias_mappings.update(generate_path_mapping(package_name, value.replace(ctx.bin_dir.path + "/", "")))

entry_points = desugar_entry_point_names(ctx.file.entry_point, ctx.files.entry_points)

Expand Down

0 comments on commit b79e3f4

Please sign in to comment.