Skip to content

Commit

Permalink
chore: tidy comment in opaque_src example (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan authored Nov 18, 2022
1 parent edc6421 commit c8193a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/opaque_src/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ swc(
srcs = [":opaque_src"],
)

# But we can extract the opaque outputs using output_files to make a friendly label for the output .js file
# But we can extract the opaque outputs using output_files to make a friendly label for the output .js file (used below)
output_files(
name = "in.js",
paths = ["%s/in.js" % package_name()],
Expand All @@ -28,7 +28,5 @@ output_files(
# Assert that the output of "transpile" rule matches the expected file.
write_source_files(
name = "test",
# This is a pre-declared output of the "transpile" rule, so we can refer to it directly using a Bazel label
# even though the file itself is generated by Bazel in ../../bazel-bin/examples/simple/in.js
files = {"expected.js": ":in.js"},
)

0 comments on commit c8193a7

Please sign in to comment.