0.1.2 • Published 2 years ago
solid-optimizer v0.1.2
solid-optimizer
Experimental compile-time optimizer for SolidJS
Install
npm i -D solid-optimizeryarn add -D solid-optimizerpnpm add -D solid-optimizerFeatures
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.
createEffectonMount
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