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
The
excludeEntrypointsoption inattwconfig doesn't seem to exclude the specified entrypoints.Reproduction
test/fixturesdir contains nestednode_modulesfolders containing packages which have nonamefield in theirpackage.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
.npmignorefile which includestest/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
attwconfig works.Version
tsdown 0.18.1