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

SSR transform incorrectly replaces class name #13554

Closed
7 tasks done
sheremet-va opened this issue Jun 19, 2023 · 1 comment · Fixed by #13572
Closed
7 tasks done

SSR transform incorrectly replaces class name #13554

sheremet-va opened this issue Jun 19, 2023 · 1 comment · Fixed by #13572
Labels
feat: ssr p3-minor-bug An edge case that only affects very specific usage (priority)

Comments

@sheremet-va
Copy link
Member

Describe the bug

When the class name matches one of the named imports, SSR transform considers it to be the reference to the import.

For reference: vitest-dev/vitest#3609

Reproduction

https://stackblitz.com/edit/node-tcgjfj?file=index.js,package.json,file.js,ast.js

Steps to reproduce

Run node index.js

System Info

Stackblitz

Used Package Manager

npm

Logs

No response

Validations

@stackblitz
Copy link

stackblitz bot commented Jun 19, 2023

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@bluwy bluwy added p3-minor-bug An edge case that only affects very specific usage (priority) feat: ssr and removed pending triage labels Jun 20, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feat: ssr p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants