Skip to content

Commit

Permalink
fix(builtin): entry point of a .tsx file is .js (#1732)
Browse files Browse the repository at this point in the history
Fixes #1730
  • Loading branch information
alexeagle authored Mar 25, 2020
1 parent 26f6698 commit 24607ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/node/node.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def _write_loader_script(ctx):
if entry_point_path.endswith(".ts"):
entry_point_path = entry_point_path[:-3] + ".js"
elif entry_point_path.endswith(".tsx"):
entry_point_path = entry_point_path[:-4] + ".jsx"
entry_point_path = entry_point_path[:-4] + ".js"

ctx.actions.expand_template(
template = ctx.file._loader_template,
Expand Down

0 comments on commit 24607ed

Please sign in to comment.