mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
add missing pass to playground
It's pretty tedious to keep the playground in sync w `Pipeline` — we need some abstraction so we can write the sequence of passes once and reuse it (while inspecting intermediate states).
This commit is contained in:
@@ -36,6 +36,7 @@ const {
|
||||
printHIR,
|
||||
printReactiveFunction,
|
||||
propagateScopeDependencies,
|
||||
pruneUnusedLabels,
|
||||
} = HIR;
|
||||
const MemoizedOutput = memo(Output);
|
||||
|
||||
@@ -100,6 +101,7 @@ function compile(source: string): CompilerOutput | CompilerError {
|
||||
const inferReactiveScopesOutput = printHIR(ir.body);
|
||||
|
||||
const reactiveFunction = buildReactiveFunction(ir);
|
||||
pruneUnusedLabels(reactiveFunction);
|
||||
flattenReactiveLoops(reactiveFunction);
|
||||
propagateScopeDependencies(reactiveFunction);
|
||||
const reactiveFunctionOutput = printReactiveFunction(reactiveFunction);
|
||||
|
||||
Reference in New Issue
Block a user