solid-optimizer
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i solid-optimizer

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

71.8 kB

Total Files

15

Last publish

Collaborators

  • lxsmnsyc