Exporting config with the format export default defineConfig makes TypeScript throw The inferred type of 'default' cannot be named without a reference to './node_modules/tsdown/dist/options'. This is likely not portable. A type annotation is necessary. ts(2742). A workaround could be using a type annotation, but that's not possible due to the Options type not being exported
Describe the bug
Exporting config with the format
export default defineConfig
makes TypeScript throwThe inferred type of 'default' cannot be named without a reference to './node_modules/tsdown/dist/options'. This is likely not portable. A type annotation is necessary. ts(2742)
. A workaround could be using a type annotation, but that's not possible due to theOptions
type not being exportedReproduction
https://pastebin.com/R7BspErm
System Info
Used Package Manager
pnpm
Validations