No successful run was found on main (bebcc1c) during the generation of this report, so d3cd97f was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.
feat(minifier): add merge_duplicate_imports option to compress settings
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/ź°ėģ¤ <kdy1@users.noreply.github.com>
a21cd1c
4 days ago
by claude[bot]
-0.02%
feat(es/minifier): Make import deduplication unconditional
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/ź°ėģ¤ <kdy1@users.noreply.github.com>