evanw / evanw/esbuild

Support for emitting a standalone metafile

Open
#2,899 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
40.1k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

There are some uses cases where I want the metafile, for example to pipe it through the bundle analyzer, but where I don't actually care about bundled files.

The problem is that the `--metafile` flag requires the `--outdir` option to be set. IMO that's an unnecessary limitation that complicates the process of getting a metafile.

I think not only `--metafile=foo.json` should just work, but `--metafile` also should work, and just write the metafile to stdout.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the CLI handling for --metafile and its dependency on --outdir. Check how metafile output is currently written, then verify that a standalone path works without bundled files and that bare --metafile writes to stdout; use the existing CLI test workflow if available.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system, cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.