react/scripts/rollup/plugins
Sebastian Markbåge bb57fa7351
[Fizz] Share code between inline and external runtime (#33066)
Stacked on #33065.

The runtime is about to be a lot more complicated so we need to start
sharing some more code.

The problem with sharing code is that we want the inline runtime to as
much as possible be isolated in its scope using only a few global
variables to refer across runtimes.

A problem with Closure Compiler is that it refuses to inline functions
if they have closures inside of them. Which makes sense because of how
VMs work it can cause memory leaks. However, in our cases this doesn't
matter and code size matters more. So we can't use many clever tricks.

So this just favors writing the source in the inline form. Then we add
an extra compiler pass to turn those global variables into local
variables in the external runtime.
2025-05-01 14:25:10 -04:00
..
closure-plugin.js Run Closure on non-minified prod builds, too (#28827) 2024-04-19 14:22:38 -04:00
dynamic-imports.js Split out Edge and Node implementations of the Flight Client (#26187) 2023-02-21 13:18:24 -05:00
external-runtime-plugin.js [Fizz] Share code between inline and external runtime (#33066) 2025-05-01 14:25:10 -04:00
sizes-plugin.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
use-forks-plugin.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00