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

optimizeDeps can't process named exports + imports from the same file #8950

Closed
7 tasks done
danielroe opened this issue Jul 6, 2022 · 0 comments
Closed
7 tasks done

Comments

@danielroe
Copy link
Contributor

Describe the bug

With the following code:

import { isFunction } from '@vue/shared';
export { isFunction } from '@vue/shared';

If this code is optimised we get the following error:

Error: Identifier 'isFunction' has already been declared

Reproduction

https://stackblitz.com/edit/vitejs-vite-9qqa75

System Info

Stackblitz with vite 3.0.0-beta.7

Used Package Manager

npm

Logs

No response

Validations

@github-actions github-actions bot locked and limited conversation to collaborators Jul 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant