Skip to content

attw.excludeEntrypoints option has no effect #656

@overlookmotel

Description

@overlookmotel

The excludeEntrypoints option in attw config doesn't seem to exclude the specified entrypoints.

Reproduction

// tsdown.config.ts
export default defineConfig({
  entry: ["src/index.ts"],
  attw: {
    profile: "esm-only",
    excludeEntrypoints: [/^\.\/test\/fixtures\//],
  },
});

test/fixtures dir contains nested node_modules folders containing packages which have no name field in their package.jsons (intentionally).

I am trying to prevent ATTW complaining about it.

Tried both RegExp and exact string matches - neither works.

Claude led me to add an .npmignore file which includes test/fixtures, and that does prevent the ATTW errors. But it feels rather hacky!

Full repro

oxc-project/oxc#17033

Apologies if I've just misunderstood how the attw config works.

Version

tsdown 0.18.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions