Let say I have "stripInternal": true
in tsconfig.json
and these 3 files in src/
// foo.ts
/** @internal */
export class Foo{
x:number = 1
}
// bar.ts
import { Foo } from "./foo";
export class Bar{
foo: Foo = new Foo();
}
// index.ts
export {Bar} from "./bar";
Then build
tsup src/index.ts --dts
I get
RollupError: "Foo" is not exported by "src/foo.ts", imported by "src/bar.ts".
Removing /** @internal */
or unsetting stripInternal
does build successfully, but I want to hide Foo
from the d.ts
file. I cannot repeat this issue using rollup alone so I open an issue here.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too