Skip to content

Exclude files from object entry with globs #660

@sxzz

Description

@sxzz

Discussed in #657

Originally posted by Alvi24 December 18, 2025

{
    entry: {
      "hooks/*/index": "./src/hooks/*.{ts,tsx}",
    },
  },

i have this entry glob to bundle my hooks folder, but this glob also bundles index.ts in a folder
how can i exclude it and just use index.js(bundled index.ts) as a barrel file to re-export the hooks

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions