You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for the late reply! This was due to a problem where ModuleDeclarations/NamespaceDeclarations could sometimes not be traced correctly, so their bindings would be deconflicted by mistake, and then the function was tree-shaken away.
I've since fixed this problem and will release a new version on NPM shortly.
I hope you found a workaround in the meantime :-)
tsc
: YesReproduction
I created a minimal repro which shows the results from both rollup-plugin-ts and tsc.
https://repl.it/@AndrewLeedham56/rollup-plugin-ts-namespace-repro
Expected Behavior
The declaration file to have both a function and namespace type, like the tsc output here: https://repl.it/@AndrewLeedham56/rollup-plugin-ts-namespace-repro#dist/tsc/foo.d.ts
This seems to be caused by
export { default as Foo } from './foo';
as compiling./foo.ts
directly works as expected (I also triedexport * from './foo'
but that worked fine): https://repl.it/@AndrewLeedham56/rollup-plugin-ts-namespace-repro#dist/rollup-foo/foo.d.tsActual Behavior
It only has the namespace: https://repl.it/@AndrewLeedham56/rollup-plugin-ts-namespace-repro#dist/rollup/index.d.ts
The text was updated successfully, but these errors were encountered: