Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto import for shared composable not generating correctly when exporting from file #13356

Closed
nurdism opened this issue Feb 10, 2022 · 1 comment · Fixed by unjs/mlly#40
Closed

Comments

@nurdism
Copy link

nurdism commented Feb 10, 2022

Environment


  • Operating System: Linux
  • Node Version: v16.13.2
  • Nuxt Version: 3.0.0-27406801.569aaeb
  • Package Manager: yarn@1.22.17
  • Bundler: Vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://codesandbox.io/s/priceless-wood-1lhpb

~/composables/test.ts

export { useTestMe1 } from "@/test/foo1";
export { useTestMe2 } from "@/test/foo2";
export { useTestMe3 } from "@/test/foo3";

cat .nuxt/types/auto-imports.d.ts

const useTestMe3: typeof import("../../composables/test")['useTestMe3']

only the last export is produced

Describe the bug

Only the last export is produced when exporting shared composables that export from a file

Additional context

No response

Logs

No response

@danielroe
Copy link
Member

Regression introduced in unjs/mlly#39.

@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants