oxc-project
oxc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
[autofix.ci] apply automated fixes
feat/minifier-property-write-side-effects
2 hours ago
[autofix.ci] apply automated fixes
feat/minifier-property-write-side-effects
2 hours ago
[autofix.ci] apply automated fixes
feat/minifier-property-write-side-effects
3 hours ago
feat(minifier): support `property_write_side_effects` option to drop unused property assignments Add `property_write_side_effects` option to `TreeShakeOptions` (default `true`). When set to `false`, property assignments like `A.from = () => {}` are considered side-effect-free, enabling the minifier to drop constructed functions/objects with property assignments when unused. This works by: 1. Wiring the existing `property_write_side_effects` from `oxc_ecmascript`'s `MayHaveSideEffectsContext` through the minifier's compress options 2. Falling through to `may_have_side_effects()` for member expression assignments in `remove_unused_assignment_expr` instead of returning `false` 3. The fixed-point loop handles cascading: first pass drops the property assignments, second pass sees the declarations are truly unused The assumption (when `false`) is that `Object.prototype` / `Function.prototype` do not have setters. This matches Rollup's default behavior and Rolldown's `propertyWriteSideEffects` option. Closes #14207 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
feat/minifier-property-write-side-effects
3 hours ago
[autofix.ci] apply automated fixes
feat/minifier-property-write-side-effects
4 hours ago
feat(linter/eslint-plugin-vitest): Implements `require_awaited_expect_poll` vitest rule
Afsoon:vitest_require_awaited_expect_poll
4 hours ago
Delete stale snapshopt test
Afsoon:feat(oxlint)-bulk-suppression
4 hours ago
feat(linter/eslint-plugin-vitest): set prefer-to-have-been-called-times compatible with jest
Afsoon:vitest-compatible-prefer-to-have-been-called-times
4 hours ago
Latest Branches
CodSpeed Performance Gauge
0%
feat(minifier): support `property_write_side_effects` option to drop unused property assignments
#20730
2 hours ago
3f08e6b
feat/minifier-property-write-side-effects
CodSpeed Performance Gauge
0%
feat(linter/eslint-plugin-vitest): Implements `require_awaited_expect_poll` vitest rule
#20702
2 days ago
07e66d2
Afsoon:vitest_require_awaited_expect_poll
CodSpeed Performance Gauge
0%
feat(linter): bulk suppression
#19328
3 days ago
93fba74
Afsoon:feat(oxlint)-bulk-suppression
Ā© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs