Skip to content

[Exports] Allow excluding files via regex or glob #339

@TheAlexLichter

Description

@TheAlexLichter

Clear and concise description of the problem

When writing exports, I want to exclude files based on regex or globs that shouldn't be exported.

Suggested solution

An exclude option under ExportOptions that takes an array of regexes or globs that will be honored

Alternative

Writing a custom exports fn, but that seems to be quite brittle.

Additional context

https://x.com/colinhacks/status/1936539368573083894

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions