Fix effects applying when they didn't need to because expression was replaced (#101166)
Looking at bundles I found that we were including polyfills for process
because of references to process.env.NODE_ENV. But this is completely
unnecessary as this will be replaced. This change fixes that. Along with
other similar cases.
Snapshot changes are massive because of the added fields, but actual
code change is fairly minimal.