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

perf: define 'typeof window' in webpack to eliminate deadcode #593

Merged
merged 3 commits into from
Jul 17, 2024

Conversation

evenchange4
Copy link
Contributor

@evenchange4 evenchange4 commented Jul 15, 2024

swc.optimizer can't handle typeof window correctly for dependencies

next.js issue: vercel/next.js#30892

@evenchange4 evenchange4 changed the title perf: define the typeof window in webpack to eliminate dead code. perf: define 'typeof window' in webpack to eliminate deadcode Jul 15, 2024
@evenchange4 evenchange4 changed the title perf: define 'typeof window' in webpack to eliminate deadcode [WIP] perf: define 'typeof window' in webpack to eliminate deadcode Jul 15, 2024
@evenchange4 evenchange4 reopened this Jul 16, 2024
@evenchange4 evenchange4 changed the title [WIP] perf: define 'typeof window' in webpack to eliminate deadcode perf: define 'typeof window' in webpack to eliminate deadcode Jul 16, 2024
@liximomo liximomo merged commit 901dd10 into shuvijs:main Jul 17, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants