0.1.2 • Published 3 months ago

solid-optimizer v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

solid-optimizer

Experimental compile-time optimizer for SolidJS

NPM JavaScript Style Guide

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

Sponsors

License

MIT © lxsmnsyc

0.1.2

3 months ago

0.1.1

1 year ago

0.1.0

2 years ago