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

evaluate: true seems to duplicate shared exports #99

Open
Vap0r1ze opened this issue Aug 24, 2024 · 0 comments
Open

evaluate: true seems to duplicate shared exports #99

Vap0r1ze opened this issue Aug 24, 2024 · 0 comments
Labels
bug report 🦗 Issue is probably a bug, but it needs to be checked needs: complete repro 🖥️ Issue need to have complete repro provided

Comments

@Vap0r1ze
Copy link

When using evaluate: true, if a file has two exports that utilize a third "shared" export, then it seems the "shared" export will have it's initializer ran seperately for each of the exports that are imported elsewhere. This causes equality issues, and was specifically bad for me when I tried using Symbols as keys for my "theme object"

Minimal Reproduction: https://stackblitz.com/edit/wyw-in-js-symbol-bug-repro?file=src%2Fmain.tsx,src%2Fsymbol.ts

@Vap0r1ze Vap0r1ze added bug report 🦗 Issue is probably a bug, but it needs to be checked needs: complete repro 🖥️ Issue need to have complete repro provided needs: triage 🏷 Issue needs to be checked and prioritized labels Aug 24, 2024
@github-actions github-actions bot removed the needs: triage 🏷 Issue needs to be checked and prioritized label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report 🦗 Issue is probably a bug, but it needs to be checked needs: complete repro 🖥️ Issue need to have complete repro provided
Projects
None yet
Development

No branches or pull requests

1 participant