solid-optimizer
Experimental compile-time optimizer for SolidJS
Install
npm i -D solid-optimizer
yarn add -D solid-optimizer
pnpm add -D solid-optimizer
Features
Warning The following features are only for SSR
Trimming no-op
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
.
Sponsors
License
MIT © lxsmnsyc