solid-optimizer 1.0.0-next.8 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,18 +12,18 @@ The website, [solid-optimizer.vercel.app](https://solid-optimizer.vercel.app), s
12
12
 
13
13
  ## Install
14
14
 
15
- The Solid 2.0 version is published under the `next` tag. The `latest` version is for Solid 1.x, which only gets fixes now, from the [`0.x` branch](https://github.com/lxsmnsyc/solid-optimizer/tree/0.x).
15
+ This version is for Solid 2.0. Solid 1.x users stay on `solid-optimizer@0`, which only gets fixes now, from the [`0.x` branch](https://github.com/lxsmnsyc/solid-optimizer/tree/0.x).
16
16
 
17
17
  ```bash
18
- npm i -D solid-optimizer@next
18
+ npm i -D solid-optimizer
19
19
  ```
20
20
 
21
21
  ```bash
22
- yarn add -D solid-optimizer@next
22
+ yarn add -D solid-optimizer
23
23
  ```
24
24
 
25
25
  ```bash
26
- pnpm add -D solid-optimizer@next
26
+ pnpm add -D solid-optimizer
27
27
  ```
28
28
 
29
29
  ## Usage
@@ -232,7 +232,7 @@ Inlining accepts two differences:
232
232
  - A prop called as `props.name()` runs with its own receiver as `this`, not the props object.
233
233
  - Moved statements run before the host's JSX is created. The order of effect registration between siblings can change.
234
234
 
235
- Inlined JSX is a copy, so its source map points at the call site it replaced.
235
+ The source map points each copied character at the one it copies, so inlined JSX maps to the component's own JSX and a prop value to the call site's attribute. Code a pass writes itself, such as a folded constant or a renamed local, maps to what it replaces.
236
236
 
237
237
  #### Only where it is smaller
238
238