Skip to content

Conversation

@sapphi-red
Copy link
Member

@sapphi-red sapphi-red commented Aug 28, 2025

In #10129, I introduced PropertyReadSideEffects. In that, I added PropertyReadSideEffects::OnlyMemberPropertyAccess. This was because I thought this was the default behavior of Rollup at that time.

But after re-reading the Rollup's code and checking the behavior in REPL while reviewing rolldown/rolldown#5945, I noticed that I was wrong. Since this was added solely for Rolldown to add support for treeshake.propertyReadSideEffects and it's not useful for that usecase, I removed the value.

cc @IWANABETHATGUY

@github-actions github-actions bot added A-minifier Area - Minifier C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Aug 28, 2025
Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@sapphi-red sapphi-red marked this pull request as ready for review August 28, 2025 09:23
@codspeed-hq
Copy link

codspeed-hq bot commented Aug 28, 2025

CodSpeed Instrumentation Performance Report

Merging #13348 will not alter performance

Comparing 08-28-refactor_ecmascript_remove_propertyreadsideeffects_onlymemberpropertyaccess_ (e459866) with main (d1c9db5)1

Summary

✅ 34 untouched benchmarks

Footnotes

  1. No successful run was found on main (e459866) during the generation of this report, so d1c9db5 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@IWANABETHATGUY
Copy link
Contributor

https://deepwiki.com/search/what-is-the-difference-between_7a582090-34a7-4c97-a981-9bd6deeee882, here is the example deepwiki explained what is the difference between true and always

@graphite-app
Copy link
Contributor

graphite-app bot commented Aug 28, 2025

Merge activity

…pertyAccess` (#13348)

In #10129, I introduced `PropertyReadSideEffects`. In that, I added `PropertyReadSideEffects::OnlyMemberPropertyAccess`. This was because I thought this was the default behavior of Rollup at that time.

But after re-reading the Rollup's code and checking the behavior in REPL while reviewing rolldown/rolldown#5945, I noticed that I was wrong. Since this was added solely for Rolldown to add support for `treeshake.propertyReadSideEffects` and it's not useful for that usecase, I removed the value.

cc @IWANABETHATGUY
@graphite-app graphite-app bot force-pushed the 08-28-refactor_ecmascript_remove_propertyreadsideeffects_onlymemberpropertyaccess_ branch from 5f153fd to e459866 Compare August 28, 2025 12:15
@graphite-app graphite-app bot merged commit e459866 into main Aug 28, 2025
24 checks passed
@graphite-app graphite-app bot deleted the 08-28-refactor_ecmascript_remove_propertyreadsideeffects_onlymemberpropertyaccess_ branch August 28, 2025 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-minifier Area - Minifier C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants