Experimental compile-time optimizer for SolidJS
MIT License
Experimental compile-time optimizer for SolidJS
npm i -D solid-optimizer
yarn add -D solid-optimizer
pnpm add -D solid-optimizer
Warning The following features are only for SSR
The following are no-op functions in SSR, their calls are removed to enable tree-shaking unwanted code.
createEffect
onMount
untrack
, batch
and startTransition
Passed argument is inlined and called synchronously. For arrow functions, if the function doesn't have the body, it's return expression is inlined instead.
createDeferred
Passed argument is inlined.
getListener
getListener
calls are replaced with null
.
MIT © lxsmnsyc