Skip to content

Allow defining entry points as globs #341

@TheAlexLichter

Description

@TheAlexLichter

Clear and concise description of the problem

As a user, I want to define an entrypoint as glob to avoid repeating myself, in addition to other defined entry points. This should also be reflected when writing exports.

Suggested solution

Allow entry points as glob, similar to tshy exports:

 entry: {
    ".": "src/index.ts",
    "v4/locales/*": "src/v4/locales/*.ts",
  },

Alternative

Write them manually/via script (which already works as workaround)

Additional context

To take it further, this could also be part of a tshy migration guide where the tshy exports map is taken, but that might be a separate issue.

https://x.com/colinhacks/status/1936539368573083894
https://github.com/isaacs/tshy#glob-exports
#339

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Priority

    None yet

    Start date

    None yet

    Target date

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions