-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat(es/minifier): Merge duplicate imports #11138
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
base: main
Are you sure you want to change the base?
Conversation
Implement feature to merge duplicate named imports from the same module during minification to reduce bundle size. - Add merge_duplicate_imports option to CompressOptions (defaults to false) - Create merge_duplicate_imports function in pure optimizer that directly iterates over ModuleItems - Handle named, default, and namespace imports correctly without creating new visitor - Preserve import semantics while merging compatible imports - Add test case for various import merging scenarios Fixes #11133 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Donny/강동윤 <[email protected]>
|
|
|
Claude finished @kdy1's task —— View job I'll review this pull request for code quality, potential issues, performance, security, and test coverage. Todo List:
Code Review SummaryI've thoroughly analyzed the implementation of the merge duplicate imports feature. Overall, this is a solid implementation with good test coverage, but there are several areas for improvement: ✅ Strengths
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@claude Remove the option and make the import deduplication unconditional.
Be sure to update the PR body appropriately
Claude finished @kdy1's task —— View job Request Completed ✅I've successfully removed the merge_duplicate_imports option and made import deduplication unconditional as requested by @kdy1. Todo List:
Changes Made:
Key Changes:
The import deduplication feature now runs unconditionally during minification, eliminating the need for users to explicitly enable it. The PR description has been updated in the commit message to reflect these changes. |
Remove merge_duplicate_imports option and make import deduplication run unconditionally during minification to reduce bundle size. - Remove merge_duplicate_imports option from CompressOptions - Update pure optimizer to always merge duplicate imports - Remove option from Terser compatibility layer - Update test configuration to reflect unconditional behavior Fixes #11133 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Donny/강동윤 <[email protected]>
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
CodSpeed Performance ReportMerging #11138 will not alter performanceComparing Summary
Footnotes |
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Implement feature to merge duplicate named imports from the same module during minification to reduce bundle size.
Fixes #11133
🤖 Generated with Claude Code