Skip to content

[Feature Request][DevTools]: Build meta information in .rolldown/[build-id]/meta.json #4134

@antfu

Description

@antfu

What problem does this feature solve?

Currently, we have .rolldown/[build-id]/log.json which records the events during builds, but it doesn't have much information about the purpose of the build, among many other build-related info.

I propose to have a .rolldown/[build-id]/meta.json to store the basic information of the build, which can be retrieved easily and statically.

What does the proposed API look like?

I imagine the data format would look like:

interface RolldownBuildMeta {
  timestamp: string
  cwd: string // or root?
  options: RolldownOptions // serialized input, output, plugins, etc.
  mode: 'build' | 'dev'
  // ...
}

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions