Skip to content

Commit

Permalink
fix go api examples for Outfile and Outdir
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Jun 30, 2024
1 parent e93513e commit bbf62c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/content/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3530,6 +3530,7 @@ body:
EntryPoints: []string{"app.js"},
Bundle: true,
Outdir: "out",
Write: true,
})
if len(result.Errors) > 0 {
Expand Down Expand Up @@ -3590,7 +3591,8 @@ body:
result := api.Build(api.BuildOptions{
EntryPoints: []string{"app.js"},
Bundle: true,
Outdir: "out.js",
Outfile: "out.js",
Write: true,
})
if len(result.Errors) > 0 {
Expand Down

0 comments on commit bbf62c6

Please sign in to comment.