Optimizer wishlist/roadmap #213
Labels
[STAGE-2] incomplete implementation
Remove this label when implementation is complete
[STAGE-2] not fully covered by tests yet
Remove this label when tests are verified to cover the implementation
[STAGE-2] unresolved discussions left
Remove this label when all critical discussions are resolved on the issue
[STAGE-3] docs changes not added yet
Remove this label when the necessary documentation for the feature / change is added
[STAGE-3] missing 2 reviews for RFC PRs
Remove this label when at least 2 core team members reviewed and approved the RFC implementation
This is a long-running issue to keep track of what to implement on the optimizer
segment generation
For example,
qrl(() => import('./foo.js'), 'foo', ...)
would become
/* top level */ const importFoo = () => import('./foo.js');
/* ...some function... */ qrl(importFoo, 'foo', ...)
and qrl would use a WeakMap to keep track of resolved imports.
{props.foo.thing ? props.foo.thing * 2 : null}
should becomefnSignal(p0 => p0.thing ? p.thing * 2 : null, props.foo)
and not
fnSignal(p0 => p0.foo.thing ? p.foo.thing * 2 : null, props)
.This helps with serializing only store data that's used.
Exception for when an intermediate prop is
value
, then it is probably a signal and it should be passed as a signal.fnSignal(p0 => p0.value.thing ? p.value.thing * 2 : null, signal)
{...props}
, make it so that var and const props are handled efficientlyoptimizer code
fs
related code, single file processing onlyThe text was updated successfully, but these errors were encountered: