Skip to content

Commit 26421f6

Browse files
authored
add metafile flag (#22349)
1 parent 14b43bd commit 26421f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/content/docs/workers/wrangler/commands.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,8 @@ None of the options for this command are required. Also, many can be set in your
348348
- If you change your environment variables or bindings in the Cloudflare dashboard, Wrangler will override them the next time you deploy. If you want to disable this behaviour set `keep-vars` to `true`.
349349
- `--dispatch-namespace` <Type text="string" /> <MetaInfo text="optional" />
350350
- Specify the [Workers for Platforms dispatch namespace](/cloudflare-for-platforms/workers-for-platforms/get-started/configuration/#2-create-a-dispatch-namespace) to upload this Worker to.
351+
- `--metafile` <Type text="string" /> <MetaInfo text="optional" />
352+
- Specify a file to write the build metadata from esbuild to. If flag is used without a path string, this defaults to `bundle-meta.json` inside the directory specified by `--outdir`. This can be useful for understanding the bundle size.
351353

352354
<Render file="wrangler-commands/global-flags" product="workers" />
353355

@@ -1199,6 +1201,8 @@ wrangler pages functions build [<DIRECTORY>] [OPTIONS]
11991201
- Date to use for compatibility checks.
12001202
- `--compatibility-flags` <Type text="string[]" /> <MetaInfo text="optional" />
12011203
- Flags to use for compatibility checks.
1204+
- `--metafile` <Type text="string" /> <MetaInfo text="optional" />
1205+
- Specify a file to write the build metadata from esbuild to. If flag is used without a path string, this defaults to `bundle-meta.json` inside the directory specified by `--outdir`. This can be useful for understanding the bundle size.
12021206

12031207
<Render file="wrangler-commands/global-flags" product="workers" />
12041208

0 commit comments

Comments
 (0)