@llui/vite-plugin 0.0.1
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/LICENSE +21 -0
- package/README.md +19 -0
- package/dist/collect-deps.d.ts +7 -0
- package/dist/collect-deps.d.ts.map +1 -0
- package/dist/collect-deps.js +267 -0
- package/dist/collect-deps.js.map +1 -0
- package/dist/diagnostics.d.ts +7 -0
- package/dist/diagnostics.d.ts.map +1 -0
- package/dist/diagnostics.js +533 -0
- package/dist/diagnostics.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +44 -0
- package/dist/index.js.map +1 -0
- package/dist/msg-schema.d.ts +9 -0
- package/dist/msg-schema.d.ts.map +1 -0
- package/dist/msg-schema.js +83 -0
- package/dist/msg-schema.js.map +1 -0
- package/dist/state-schema.d.ts +28 -0
- package/dist/state-schema.d.ts.map +1 -0
- package/dist/state-schema.js +108 -0
- package/dist/state-schema.js.map +1 -0
- package/dist/transform.d.ts +14 -0
- package/dist/transform.d.ts.map +1 -0
- package/dist/transform.js +1930 -0
- package/dist/transform.js.map +1 -0
- package/package.json +49 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Franco Ponticelli
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# @llui/vite-plugin
|
|
2
|
+
|
|
3
|
+
Vite plugin compiler for [LLui](https://github.com/fponticelli/llui).
|
|
4
|
+
|
|
5
|
+
3-pass TypeScript transform: static/dynamic prop split, dependency analysis + bitmask injection, import cleanup. Rewrites element helpers to `elSplit()`/`elTemplate()`, synthesizes `__dirty()` per component, and handles `View<S,M>` destructuring.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add -D @llui/vite-plugin
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { defineConfig } from 'vite'
|
|
13
|
+
import llui from '@llui/vite-plugin'
|
|
14
|
+
export default defineConfig({ plugins: [llui()] })
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## License
|
|
18
|
+
|
|
19
|
+
MIT
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pre-scan a source file to collect all unique state access paths
|
|
3
|
+
* referenced by reactive accessors (arrow functions in props and text() calls).
|
|
4
|
+
* Returns a Map<path, bitPosition> where each path gets a unique power-of-two bit.
|
|
5
|
+
*/
|
|
6
|
+
export declare function collectDeps(source: string): Map<string, number>;
|
|
7
|
+
//# sourceMappingURL=collect-deps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collect-deps.d.ts","sourceRoot":"","sources":["../src/collect-deps.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAmD/D"}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import ts from 'typescript';
|
|
2
|
+
/**
|
|
3
|
+
* Pre-scan a source file to collect all unique state access paths
|
|
4
|
+
* referenced by reactive accessors (arrow functions in props and text() calls).
|
|
5
|
+
* Returns a Map<path, bitPosition> where each path gets a unique power-of-two bit.
|
|
6
|
+
*/
|
|
7
|
+
export function collectDeps(source) {
|
|
8
|
+
const sourceFile = ts.createSourceFile('input.ts', source, ts.ScriptTarget.Latest, true);
|
|
9
|
+
// Check if file imports from @llui/dom
|
|
10
|
+
if (!hasLluiImport(sourceFile)) {
|
|
11
|
+
return new Map();
|
|
12
|
+
}
|
|
13
|
+
const paths = new Set();
|
|
14
|
+
// Walk the AST to find reactive accessors
|
|
15
|
+
function visit(node) {
|
|
16
|
+
// Look for arrow functions that are reactive accessors:
|
|
17
|
+
// - First arg to text(): text(s => s.count)
|
|
18
|
+
// - Prop values in element helper calls: div({ title: s => s.title })
|
|
19
|
+
if (ts.isArrowFunction(node) || ts.isFunctionExpression(node)) {
|
|
20
|
+
const params = node.parameters;
|
|
21
|
+
if (params.length === 1) {
|
|
22
|
+
const paramName = params[0].name;
|
|
23
|
+
if (ts.isIdentifier(paramName)) {
|
|
24
|
+
// Check if this looks like a reactive accessor (not an event handler)
|
|
25
|
+
if (isReactiveAccessor(node)) {
|
|
26
|
+
extractPaths(node.body, paramName.text, '', paths);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
ts.forEachChild(node, visit);
|
|
32
|
+
}
|
|
33
|
+
visit(sourceFile);
|
|
34
|
+
// Assign bit positions. The bitmask holds 31 unique paths (positions
|
|
35
|
+
// 0..30). When the count exceeds 31, overflow paths use FULL_MASK (-1)
|
|
36
|
+
// — they always trigger re-evaluation, degrading gracefully. The
|
|
37
|
+
// diagnostic warns the user to decompose.
|
|
38
|
+
const fieldBits = new Map();
|
|
39
|
+
let bit = 1;
|
|
40
|
+
let index = 0;
|
|
41
|
+
for (const path of paths) {
|
|
42
|
+
if (index >= 31) {
|
|
43
|
+
fieldBits.set(path, -1);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
fieldBits.set(path, bit);
|
|
47
|
+
bit <<= 1;
|
|
48
|
+
}
|
|
49
|
+
index++;
|
|
50
|
+
}
|
|
51
|
+
return fieldBits;
|
|
52
|
+
}
|
|
53
|
+
function hasLluiImport(sourceFile) {
|
|
54
|
+
for (const stmt of sourceFile.statements) {
|
|
55
|
+
if (ts.isImportDeclaration(stmt) &&
|
|
56
|
+
ts.isStringLiteral(stmt.moduleSpecifier) &&
|
|
57
|
+
stmt.moduleSpecifier.text === '@llui/dom') {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Determines if an arrow/function expression is a reactive accessor
|
|
65
|
+
* (not an event handler, not a callback like onClick).
|
|
66
|
+
*/
|
|
67
|
+
function isReactiveAccessor(node) {
|
|
68
|
+
const parent = node.parent;
|
|
69
|
+
// text(s => s.count) — first arg to a call
|
|
70
|
+
if (ts.isCallExpression(parent) && parent.arguments[0] === node) {
|
|
71
|
+
// Skip item(t => t.id) — per-item selectors inside each() render
|
|
72
|
+
if (ts.isIdentifier(parent.expression) && parent.expression.text === 'item') {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
// Skip array method callbacks: .filter(t => ...), .map(t => ...), .some(t => ...), etc.
|
|
76
|
+
// Allow view-helper primitive calls: h.text(s => ...), h.memo(s => ...)
|
|
77
|
+
if (ts.isPropertyAccessExpression(parent.expression)) {
|
|
78
|
+
const methodName = parent.expression.name.text;
|
|
79
|
+
if (methodName === 'text' || methodName === 'memo') {
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
// div({ title: s => s.title }) — value in a property assignment inside an object literal.
|
|
87
|
+
// Only treat as reactive if the containing call is a known framework API whose
|
|
88
|
+
// properties are reactive accessors. Otherwise user-land helpers like
|
|
89
|
+
// sliceHandler({ narrow: (m) => m.type === ... }) would pollute the path set.
|
|
90
|
+
if (ts.isPropertyAssignment(parent)) {
|
|
91
|
+
const key = parent.name;
|
|
92
|
+
if (ts.isIdentifier(key)) {
|
|
93
|
+
// Skip event handlers (onClick, onInput, etc.)
|
|
94
|
+
if (/^on[A-Z]/.test(key.text))
|
|
95
|
+
return false;
|
|
96
|
+
// Skip each() key function and other non-reactive props
|
|
97
|
+
if (key.text === 'key' || key.text === 'name')
|
|
98
|
+
return false;
|
|
99
|
+
// Walk up to find the enclosing call expression
|
|
100
|
+
let ancestor = parent.parent; // ObjectLiteralExpression
|
|
101
|
+
while (ancestor && !ts.isCallExpression(ancestor)) {
|
|
102
|
+
ancestor = ancestor.parent;
|
|
103
|
+
}
|
|
104
|
+
if (!ancestor)
|
|
105
|
+
return false;
|
|
106
|
+
const callExpr = ancestor;
|
|
107
|
+
if (!ts.isIdentifier(callExpr.expression))
|
|
108
|
+
return false;
|
|
109
|
+
return REACTIVE_API_NAMES.has(callExpr.expression.text);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return false;
|
|
113
|
+
}
|
|
114
|
+
// Framework APIs whose object-literal arguments contain reactive accessors.
|
|
115
|
+
// Arrow functions in property values of these calls are state-tracked.
|
|
116
|
+
const REACTIVE_API_NAMES = new Set([
|
|
117
|
+
// Element helpers (see ELEMENT_HELPERS in transform.ts — we keep a superset here)
|
|
118
|
+
...[
|
|
119
|
+
'a',
|
|
120
|
+
'abbr',
|
|
121
|
+
'article',
|
|
122
|
+
'aside',
|
|
123
|
+
'b',
|
|
124
|
+
'blockquote',
|
|
125
|
+
'br',
|
|
126
|
+
'button',
|
|
127
|
+
'canvas',
|
|
128
|
+
'code',
|
|
129
|
+
'dd',
|
|
130
|
+
'details',
|
|
131
|
+
'dialog',
|
|
132
|
+
'div',
|
|
133
|
+
'dl',
|
|
134
|
+
'dt',
|
|
135
|
+
'em',
|
|
136
|
+
'fieldset',
|
|
137
|
+
'figcaption',
|
|
138
|
+
'figure',
|
|
139
|
+
'footer',
|
|
140
|
+
'form',
|
|
141
|
+
'h1',
|
|
142
|
+
'h2',
|
|
143
|
+
'h3',
|
|
144
|
+
'h4',
|
|
145
|
+
'h5',
|
|
146
|
+
'h6',
|
|
147
|
+
'header',
|
|
148
|
+
'hr',
|
|
149
|
+
'i',
|
|
150
|
+
'iframe',
|
|
151
|
+
'img',
|
|
152
|
+
'input',
|
|
153
|
+
'label',
|
|
154
|
+
'legend',
|
|
155
|
+
'li',
|
|
156
|
+
'main',
|
|
157
|
+
'mark',
|
|
158
|
+
'nav',
|
|
159
|
+
'ol',
|
|
160
|
+
'optgroup',
|
|
161
|
+
'option',
|
|
162
|
+
'output',
|
|
163
|
+
'p',
|
|
164
|
+
'pre',
|
|
165
|
+
'progress',
|
|
166
|
+
'section',
|
|
167
|
+
'select',
|
|
168
|
+
'small',
|
|
169
|
+
'span',
|
|
170
|
+
'strong',
|
|
171
|
+
'sub',
|
|
172
|
+
'summary',
|
|
173
|
+
'sup',
|
|
174
|
+
'table',
|
|
175
|
+
'tbody',
|
|
176
|
+
'td',
|
|
177
|
+
'textarea',
|
|
178
|
+
'tfoot',
|
|
179
|
+
'th',
|
|
180
|
+
'thead',
|
|
181
|
+
'time',
|
|
182
|
+
'tr',
|
|
183
|
+
'ul',
|
|
184
|
+
'video',
|
|
185
|
+
],
|
|
186
|
+
// Structural primitives
|
|
187
|
+
'each',
|
|
188
|
+
'branch',
|
|
189
|
+
'show',
|
|
190
|
+
'memo',
|
|
191
|
+
'portal',
|
|
192
|
+
'foreign',
|
|
193
|
+
'child',
|
|
194
|
+
'errorBoundary',
|
|
195
|
+
]);
|
|
196
|
+
/**
|
|
197
|
+
* Extract state access paths from an expression body.
|
|
198
|
+
* Handles:
|
|
199
|
+
* - Direct property access: param.field, param.field.subfield
|
|
200
|
+
* - Bracket notation with string literal: param['field']
|
|
201
|
+
*/
|
|
202
|
+
function extractPaths(node, paramName, _prefix, paths) {
|
|
203
|
+
if (ts.isPropertyAccessExpression(node)) {
|
|
204
|
+
// Skip if this is an intermediate in a deeper chain
|
|
205
|
+
if (ts.isPropertyAccessExpression(node.parent)) {
|
|
206
|
+
// handled when the leaf is visited
|
|
207
|
+
}
|
|
208
|
+
// Skip if this is the callee of a method call: s.todos.filter(...)
|
|
209
|
+
else if (ts.isCallExpression(node.parent) && node.parent.expression === node) {
|
|
210
|
+
// It's a method call — record the object, not the method
|
|
211
|
+
// e.g. s.todos.filter(...) → record 'todos', not 'todos.filter'
|
|
212
|
+
if (ts.isPropertyAccessExpression(node.expression)) {
|
|
213
|
+
const chain = resolvePropertyChain(node.expression, paramName);
|
|
214
|
+
if (chain)
|
|
215
|
+
paths.add(chain);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
const chain = resolvePropertyChain(node, paramName);
|
|
220
|
+
if (chain) {
|
|
221
|
+
paths.add(chain);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
if (ts.isElementAccessExpression(node)) {
|
|
226
|
+
const chain = resolveElementAccess(node, paramName);
|
|
227
|
+
if (chain) {
|
|
228
|
+
paths.add(chain);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
ts.forEachChild(node, (child) => extractPaths(child, paramName, _prefix, paths));
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Resolve a property access chain like s.user.name to "user.name".
|
|
235
|
+
* Returns null if the chain doesn't start with the state parameter.
|
|
236
|
+
* Stops at depth 2.
|
|
237
|
+
*/
|
|
238
|
+
function resolvePropertyChain(node, paramName) {
|
|
239
|
+
const parts = [];
|
|
240
|
+
let current = node;
|
|
241
|
+
while (ts.isPropertyAccessExpression(current)) {
|
|
242
|
+
parts.unshift(current.name.text);
|
|
243
|
+
current = current.expression;
|
|
244
|
+
}
|
|
245
|
+
// The root must be the state parameter
|
|
246
|
+
if (!ts.isIdentifier(current) || current.text !== paramName) {
|
|
247
|
+
return null;
|
|
248
|
+
}
|
|
249
|
+
// Limit to depth 2
|
|
250
|
+
if (parts.length > 2) {
|
|
251
|
+
return parts.slice(0, 2).join('.');
|
|
252
|
+
}
|
|
253
|
+
return parts.join('.');
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Resolve bracket access with string literal: s['count'] → "count"
|
|
257
|
+
*/
|
|
258
|
+
function resolveElementAccess(node, paramName) {
|
|
259
|
+
if (!ts.isIdentifier(node.expression) || node.expression.text !== paramName) {
|
|
260
|
+
return null;
|
|
261
|
+
}
|
|
262
|
+
if (ts.isStringLiteral(node.argumentExpression)) {
|
|
263
|
+
return node.argumentExpression.text;
|
|
264
|
+
}
|
|
265
|
+
return null;
|
|
266
|
+
}
|
|
267
|
+
//# sourceMappingURL=collect-deps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collect-deps.js","sourceRoot":"","sources":["../src/collect-deps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,MAAc;IACxC,MAAM,UAAU,GAAG,EAAE,CAAC,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;IAExF,uCAAuC;IACvC,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE,CAAC;QAC/B,OAAO,IAAI,GAAG,EAAE,CAAA;IAClB,CAAC;IAED,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