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
Hey, recently ive noticed that after build plugin sets 1st default export in .d.ts to default even when i export as default not this statement. For example i have Header.tsx
and for example if i dont use default export in useHeaderLogic, Header becomes default in .d.ts, i think plugin just takes 1st default export (including imported modules)
Plugin version: 1.3.14
Typescript version: 4.0.2
upd:
probably this line of code creates export statements, i dont see any settings or something what depends on me, so i consider this is a bug
The text was updated successfully, but these errors were encountered:
ops1ops
changed the title
export as default uses 1st declare
[Bug] statementMerger uses 1st default statement as default
Sep 13, 2021
ops1ops
changed the title
[Bug] statementMerger uses 1st default statement as default
[Bug] statementMerger uses 1st export default statement as default
Sep 13, 2021
Bug
Hey, recently ive noticed that after build plugin sets 1st default export in .d.ts to default even when i export as default not this statement. For example i have Header.tsx
and after build Header-[hash].d.ts looks like this:
but expected Header to be default
and for example if i dont use default export in useHeaderLogic, Header becomes default in .d.ts, i think plugin just takes 1st default export (including imported modules)
Plugin version: 1.3.14
Typescript version: 4.0.2
upd:
probably this line of code creates export statements, i dont see any settings or something what depends on me, so i consider this is a bug
The text was updated successfully, but these errors were encountered: