@llui/vite-plugin 0.0.2 → 0.0.3
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 +12 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,23 +30,23 @@ llui({
|
|
|
30
30
|
|
|
31
31
|
The compiler runs 3 passes over every `.ts`/`.tsx` file using the TypeScript Compiler API:
|
|
32
32
|
|
|
33
|
-
| Pass | Name
|
|
34
|
-
| ---- |
|
|
35
|
-
| 1 | Prop split
|
|
36
|
-
| 2 | Mask injection
|
|
37
|
-
| 3 | Import cleanup
|
|
33
|
+
| Pass | Name | Description |
|
|
34
|
+
| ---- | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
35
|
+
| 1 | Prop split | Rewrites element helpers to `elSplit()`/`elTemplate()` for template cloning. Separates static props (set once at mount) from dynamic props (updated on state change). |
|
|
36
|
+
| 2 | Mask injection | Analyzes state dependencies, assigns bitmask bits to state paths, injects `__dirty(oldState, newState)` per component. Rewrites `text()` and binding callbacks with mask guards. |
|
|
37
|
+
| 3 | Import cleanup | Removes unused imports introduced or made redundant by earlier passes. |
|
|
38
38
|
|
|
39
39
|
## Diagnostics
|
|
40
40
|
|
|
41
41
|
The compiler emits warnings for common issues:
|
|
42
42
|
|
|
43
|
-
| Diagnostic
|
|
44
|
-
|
|
|
45
|
-
| Missing alt attribute
|
|
46
|
-
| Non-exhaustive update
|
|
47
|
-
| Empty props
|
|
48
|
-
| Namespace imports
|
|
49
|
-
| Spread children
|
|
43
|
+
| Diagnostic | Description |
|
|
44
|
+
| --------------------- | ------------------------------------------------ |
|
|
45
|
+
| Missing alt attribute | Accessibility: `img` without `alt` |
|
|
46
|
+
| Non-exhaustive update | `update()` switch missing msg type cases |
|
|
47
|
+
| Empty props | Element helper called with empty props object |
|
|
48
|
+
| Namespace imports | `import * as` prevents tree-shaking |
|
|
49
|
+
| Spread children | Spread in children array defeats static analysis |
|
|
50
50
|
|
|
51
51
|
## License
|
|
52
52
|
|