-
-
Notifications
You must be signed in to change notification settings - Fork 129
Closed
Description
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
Apologies if I've just misunderstood how the attw config works.
Version
tsdown 0.18.1
Metadata
Metadata
Assignees
Labels
No labels