Closed switz closed 1 year ago
for some reason, tsup is generating the default export as:
source:
export default function driver({ ...
output:
function driver({ ...
export { driver as default };
which is breaking auto imports – when manually changing the output to export default
, auto-import works as expected.
I don't know why. tsc
raw generates export default
so what is tsup doing?
relevant items: https://github.com/switz/driver/blob/main/package.json https://github.com/switz/driver/blob/main/tsconfig.json https://github.com/switz/driver/blob/main/tsup.config.ts
this is fixed by upgrading your typescript/vscode ts version to 5.2.2+