dts-bundle
dts-bundle copied to clipboard
Union Types breaking bundling
Hi, it looks like union types are breaking the bundling process.
original:
export type MyType = "a" | "b" | "c";
export const AnotherType = {
One: "a" as MyType,
Two: "b" as MyType,
Three: "c" as MyType
};
Output (from the top of the file, there is a blank line first):
One: "a" | "b" | "c";
Two: "a" | "b" | "c";
Three: "a" | "b" | "c";
};
I'll try to dig in more and see if I can find the bug, but could someone take a look?