// 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.
Let say I have
"stripInternal": true
intsconfig.json
and these 3 files insrc/
Then build
I get
Removing
/** @internal */
or unsettingstripInternal
does build successfully, but I want to hideFoo
from thed.ts
file. I cannot repeat this issue using rollup alone so I open an issue here.