Skip to content

Commit 5cc6dc8

Browse files
janechuCopilot
andcommitted
Trim fast-element size measurements
Keep the generated size tables focused on the previously tracked exports plus the requested attributeMap and observerMap subpath entries. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2cff100 commit 5cc6dc8

3 files changed

Lines changed: 5 additions & 271 deletions

File tree

packages/fast-element/SIZES.md

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -10,53 +10,15 @@ Bundle sizes for `@microsoft/fast-element` exports.
1010
| Observable (@microsoft/fast-element/observable.js) | 6.70 KB | 2.50 KB | 2.22 KB |
1111
| observable (@microsoft/fast-element/observable.js) | 6.74 KB | 2.51 KB | 2.23 KB |
1212
| attr (@microsoft/fast-element/attr.js) | 477 B | 288 B | 244 B |
13-
| AttributeConfiguration (@microsoft/fast-element/attr.js) | 321 B | 224 B | 204 B |
14-
| AttributeDefinition (@microsoft/fast-element/attr.js) | 8.61 KB | 3.17 KB | 2.84 KB |
15-
| booleanConverter (@microsoft/fast-element/attr.js) | 412 B | 270 B | 230 B |
16-
| nullableBooleanConverter (@microsoft/fast-element/attr.js) | 549 B | 325 B | 277 B |
17-
| nullableNumberConverter (@microsoft/fast-element/attr.js) | 456 B | 291 B | 249 B |
18-
| Binding (@microsoft/fast-element/binding.js) | 106 B | 113 B | 90 B |
19-
| normalizeBinding (@microsoft/fast-element/binding.js) | 7.13 KB | 2.64 KB | 2.37 KB |
20-
| oneTime (@microsoft/fast-element/binding.js) | 1.94 KB | 781 B | 628 B |
21-
| oneWay (@microsoft/fast-element/binding.js) | 6.93 KB | 2.57 KB | 2.29 KB |
22-
| listener (@microsoft/fast-element/binding.js) | 6.92 KB | 2.58 KB | 2.30 KB |
2313
| children (@microsoft/fast-element/children.js) | 4.81 KB | 1.86 KB | 1.64 KB |
24-
| ChildrenDirective (@microsoft/fast-element/children.js) | 4.74 KB | 1.83 KB | 1.62 KB |
25-
| elements (@microsoft/fast-element/node-observation.js) | 88 B | 94 B | 79 B |
26-
| NodeObservationDirective (@microsoft/fast-element/node-observation.js) | 4.27 KB | 1.67 KB | 1.47 KB |
2714
| ref (@microsoft/fast-element/ref.js) | 3.78 KB | 1.52 KB | 1.34 KB |
28-
| RefDirective (@microsoft/fast-element/ref.js) | 3.77 KB | 1.52 KB | 1.33 KB |
2915
| slotted (@microsoft/fast-element/slotted.js) | 4.60 KB | 1.79 KB | 1.58 KB |
30-
| SlottedDirective (@microsoft/fast-element/slotted.js) | 4.53 KB | 1.76 KB | 1.55 KB |
3116
| volatile (@microsoft/fast-element/volatile.js) | 6.79 KB | 2.53 KB | 2.25 KB |
3217
| when (@microsoft/fast-element/when.js) | 1.82 KB | 712 B | 565 B |
3318
| html (@microsoft/fast-element/html.js) | 25.92 KB | 8.50 KB | 7.61 KB |
34-
| ViewTemplate (@microsoft/fast-element/html.js) | 25.92 KB | 8.50 KB | 7.62 KB |
3519
| repeat (@microsoft/fast-element/repeat.js) | 29.57 KB | 9.41 KB | 8.47 KB |
36-
| RepeatBehavior (@microsoft/fast-element/repeat.js) | 29.04 KB | 9.25 KB | 8.32 KB |
37-
| RepeatDirective (@microsoft/fast-element/repeat.js) | 29.04 KB | 9.26 KB | 8.32 KB |
3820
| css (@microsoft/fast-element/css.js) | 2.43 KB | 1.00 KB | 911 B |
39-
| ArrayObserver (@microsoft/fast-element/array-observer.js) | 12.51 KB | 4.45 KB | 4.01 KB |
40-
| DOM (@microsoft/fast-element/dom.js) | 2.33 KB | 923 B | 771 B |
41-
| DOMAspect (@microsoft/fast-element/dom.js) | 2.33 KB | 927 B | 777 B |
4221
| enableHydration (@microsoft/fast-element/hydration.js) | 43.25 KB | 13.22 KB | 11.89 KB |
43-
| HydrationTracker (@microsoft/fast-element/hydration.js) | 807 B | 349 B | 294 B |
44-
| isHydratable (@microsoft/fast-element/hydration.js) | 2.78 KB | 1020 B | 839 B |
45-
| HydrationBindingError (@microsoft/fast-element/hydration.js) | 16.39 KB | 5.26 KB | 4.67 KB |
46-
| render (@microsoft/fast-element/render.js) | 36.76 KB | 11.75 KB | 10.56 KB |
47-
| RenderBehavior (@microsoft/fast-element/render.js) | 35.66 KB | 11.49 KB | 10.30 KB |
48-
| RenderDirective (@microsoft/fast-element/render.js) | 35.66 KB | 11.48 KB | 10.30 KB |
49-
| Schema (@microsoft/fast-element/schema.js) | 3.12 KB | 1.01 KB | 919 B |
50-
| schemaRegistry (@microsoft/fast-element/schema.js) | 43 B | 63 B | 47 B |
51-
| Compiler (@microsoft/fast-element/templating.js) | 24.40 KB | 7.97 KB | 7.13 KB |
52-
| HTMLBindingDirective (@microsoft/fast-element/templating.js) | 20.82 KB | 6.72 KB | 6.01 KB |
53-
| HTMLDirective (@microsoft/fast-element/templating.js) | 3.68 KB | 1.48 KB | 1.29 KB |
54-
| htmlDirective (@microsoft/fast-element/templating.js) | 3.73 KB | 1.50 KB | 1.31 KB |
55-
| StatelessAttachedAttributeDirective (@microsoft/fast-element/templating.js) | 3.70 KB | 1.49 KB | 1.30 KB |
56-
| Markup (@microsoft/fast-element/templating.js) | 501 B | 341 B | 292 B |
57-
| Parser (@microsoft/fast-element/templating.js) | 501 B | 340 B | 291 B |
58-
| InlineTemplateDirective (@microsoft/fast-element/templating.js) | 25.93 KB | 8.50 KB | 7.62 KB |
59-
| HTMLView (@microsoft/fast-element/templating.js) | 8.99 KB | 3.20 KB | 2.85 KB |
60-
| declarativeTemplate (@microsoft/fast-element/declarative.js) | 58.72 KB | 18.43 KB | 16.45 KB |
22+
| ArrayObserver (@microsoft/fast-element/array-observer.js) | 12.51 KB | 4.45 KB | 4.01 KB |
6123
| observerMap (@microsoft/fast-element/observer-map.js) | 20.36 KB | 7.23 KB | 6.50 KB |
6224
| attributeMap (@microsoft/fast-element/attribute-map.js) | 15.61 KB | 5.52 KB | 4.97 KB |

packages/fast-element/scripts/measure-sizes.js

Lines changed: 3 additions & 193 deletions
Original file line numberDiff line numberDiff line change
@@ -28,96 +28,21 @@ const subpathExports = [
2828
export: "observable",
2929
},
3030
{ name: "attr", importPath: "@microsoft/fast-element/attr.js", export: "attr" },
31-
{
32-
name: "AttributeConfiguration",
33-
importPath: "@microsoft/fast-element/attr.js",
34-
export: "AttributeConfiguration",
35-
},
36-
{
37-
name: "AttributeDefinition",
38-
importPath: "@microsoft/fast-element/attr.js",
39-
export: "AttributeDefinition",
40-
},
41-
{
42-
name: "booleanConverter",
43-
importPath: "@microsoft/fast-element/attr.js",
44-
export: "booleanConverter",
45-
},
46-
{
47-
name: "nullableBooleanConverter",
48-
importPath: "@microsoft/fast-element/attr.js",
49-
export: "nullableBooleanConverter",
50-
},
51-
{
52-
name: "nullableNumberConverter",
53-
importPath: "@microsoft/fast-element/attr.js",
54-
export: "nullableNumberConverter",
55-
},
56-
{
57-
name: "Binding",
58-
importPath: "@microsoft/fast-element/binding.js",
59-
export: "Binding",
60-
},
61-
{
62-
name: "normalizeBinding",
63-
importPath: "@microsoft/fast-element/binding.js",
64-
export: "normalizeBinding",
65-
},
66-
{
67-
name: "oneTime",
68-
importPath: "@microsoft/fast-element/binding.js",
69-
export: "oneTime",
70-
},
71-
{
72-
name: "oneWay",
73-
importPath: "@microsoft/fast-element/binding.js",
74-
export: "oneWay",
75-
},
76-
{
77-
name: "listener",
78-
importPath: "@microsoft/fast-element/binding.js",
79-
export: "listener",
80-
},
8131
{
8232
name: "children",
8333
importPath: "@microsoft/fast-element/children.js",
8434
export: "children",
8535
},
86-
{
87-
name: "ChildrenDirective",
88-
importPath: "@microsoft/fast-element/children.js",
89-
export: "ChildrenDirective",
90-
},
91-
{
92-
name: "elements",
93-
importPath: "@microsoft/fast-element/node-observation.js",
94-
export: "elements",
95-
},
96-
{
97-
name: "NodeObservationDirective",
98-
importPath: "@microsoft/fast-element/node-observation.js",
99-
export: "NodeObservationDirective",
100-
},
10136
{
10237
name: "ref",
10338
importPath: "@microsoft/fast-element/ref.js",
10439
export: "ref",
10540
},
106-
{
107-
name: "RefDirective",
108-
importPath: "@microsoft/fast-element/ref.js",
109-
export: "RefDirective",
110-
},
11141
{
11242
name: "slotted",
11343
importPath: "@microsoft/fast-element/slotted.js",
11444
export: "slotted",
11545
},
116-
{
117-
name: "SlottedDirective",
118-
importPath: "@microsoft/fast-element/slotted.js",
119-
export: "SlottedDirective",
120-
},
12146
{
12247
name: "volatile",
12348
importPath: "@microsoft/fast-element/volatile.js",
@@ -129,136 +54,21 @@ const subpathExports = [
12954
export: "when",
13055
},
13156
{ name: "html", importPath: "@microsoft/fast-element/html.js", export: "html" },
132-
{
133-
name: "ViewTemplate",
134-
importPath: "@microsoft/fast-element/html.js",
135-
export: "ViewTemplate",
136-
},
13757
{
13858
name: "repeat",
13959
importPath: "@microsoft/fast-element/repeat.js",
14060
export: "repeat",
14161
},
142-
{
143-
name: "RepeatBehavior",
144-
importPath: "@microsoft/fast-element/repeat.js",
145-
export: "RepeatBehavior",
146-
},
147-
{
148-
name: "RepeatDirective",
149-
importPath: "@microsoft/fast-element/repeat.js",
150-
export: "RepeatDirective",
151-
},
15262
{ name: "css", importPath: "@microsoft/fast-element/css.js", export: "css" },
153-
{
154-
name: "ArrayObserver",
155-
importPath: "@microsoft/fast-element/array-observer.js",
156-
export: "ArrayObserver",
157-
},
158-
{
159-
name: "DOM",
160-
importPath: "@microsoft/fast-element/dom.js",
161-
export: "DOM",
162-
},
163-
{
164-
name: "DOMAspect",
165-
importPath: "@microsoft/fast-element/dom.js",
166-
export: "DOMAspect",
167-
},
16863
{
16964
name: "enableHydration",
17065
importPath: "@microsoft/fast-element/hydration.js",
17166
export: "enableHydration",
17267
},
17368
{
174-
name: "HydrationTracker",
175-
importPath: "@microsoft/fast-element/hydration.js",
176-
export: "HydrationTracker",
177-
},
178-
{
179-
name: "isHydratable",
180-
importPath: "@microsoft/fast-element/hydration.js",
181-
export: "isHydratable",
182-
},
183-
{
184-
name: "HydrationBindingError",
185-
importPath: "@microsoft/fast-element/hydration.js",
186-
export: "HydrationBindingError",
187-
},
188-
{
189-
name: "render",
190-
importPath: "@microsoft/fast-element/render.js",
191-
export: "render",
192-
},
193-
{
194-
name: "RenderBehavior",
195-
importPath: "@microsoft/fast-element/render.js",
196-
export: "RenderBehavior",
197-
},
198-
{
199-
name: "RenderDirective",
200-
importPath: "@microsoft/fast-element/render.js",
201-
export: "RenderDirective",
202-
},
203-
{
204-
name: "Schema",
205-
importPath: "@microsoft/fast-element/schema.js",
206-
export: "Schema",
207-
},
208-
{
209-
name: "schemaRegistry",
210-
importPath: "@microsoft/fast-element/schema.js",
211-
export: "schemaRegistry",
212-
},
213-
{
214-
name: "Compiler",
215-
importPath: "@microsoft/fast-element/templating.js",
216-
export: "Compiler",
217-
},
218-
{
219-
name: "HTMLBindingDirective",
220-
importPath: "@microsoft/fast-element/templating.js",
221-
export: "HTMLBindingDirective",
222-
},
223-
{
224-
name: "HTMLDirective",
225-
importPath: "@microsoft/fast-element/templating.js",
226-
export: "HTMLDirective",
227-
},
228-
{
229-
name: "htmlDirective",
230-
importPath: "@microsoft/fast-element/templating.js",
231-
export: "htmlDirective",
232-
},
233-
{
234-
name: "StatelessAttachedAttributeDirective",
235-
importPath: "@microsoft/fast-element/templating.js",
236-
export: "StatelessAttachedAttributeDirective",
237-
},
238-
{
239-
name: "Markup",
240-
importPath: "@microsoft/fast-element/templating.js",
241-
export: "Markup",
242-
},
243-
{
244-
name: "Parser",
245-
importPath: "@microsoft/fast-element/templating.js",
246-
export: "Parser",
247-
},
248-
{
249-
name: "InlineTemplateDirective",
250-
importPath: "@microsoft/fast-element/templating.js",
251-
export: "InlineTemplateDirective",
252-
},
253-
{
254-
name: "HTMLView",
255-
importPath: "@microsoft/fast-element/templating.js",
256-
export: "HTMLView",
257-
},
258-
{
259-
name: "declarativeTemplate",
260-
importPath: "@microsoft/fast-element/declarative.js",
261-
export: "declarativeTemplate",
69+
name: "ArrayObserver",
70+
importPath: "@microsoft/fast-element/array-observer.js",
71+
export: "ArrayObserver",
26272
},
26373
{
26474
name: "observerMap",

sites/website/src/docs/3.x/resources/export-sizes.md

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -25,53 +25,15 @@ Bundle sizes for `@microsoft/fast-element` exports.
2525
| Observable (@microsoft/fast-element/observable.js) | 6.70 KB | 2.50 KB | 2.22 KB |
2626
| observable (@microsoft/fast-element/observable.js) | 6.74 KB | 2.51 KB | 2.23 KB |
2727
| attr (@microsoft/fast-element/attr.js) | 477 B | 288 B | 244 B |
28-
| AttributeConfiguration (@microsoft/fast-element/attr.js) | 321 B | 224 B | 204 B |
29-
| AttributeDefinition (@microsoft/fast-element/attr.js) | 8.61 KB | 3.17 KB | 2.84 KB |
30-
| booleanConverter (@microsoft/fast-element/attr.js) | 412 B | 270 B | 230 B |
31-
| nullableBooleanConverter (@microsoft/fast-element/attr.js) | 549 B | 325 B | 277 B |
32-
| nullableNumberConverter (@microsoft/fast-element/attr.js) | 456 B | 291 B | 249 B |
33-
| Binding (@microsoft/fast-element/binding.js) | 106 B | 113 B | 90 B |
34-
| normalizeBinding (@microsoft/fast-element/binding.js) | 7.13 KB | 2.64 KB | 2.37 KB |
35-
| oneTime (@microsoft/fast-element/binding.js) | 1.94 KB | 781 B | 628 B |
36-
| oneWay (@microsoft/fast-element/binding.js) | 6.93 KB | 2.57 KB | 2.29 KB |
37-
| listener (@microsoft/fast-element/binding.js) | 6.92 KB | 2.58 KB | 2.30 KB |
3828
| children (@microsoft/fast-element/children.js) | 4.81 KB | 1.86 KB | 1.64 KB |
39-
| ChildrenDirective (@microsoft/fast-element/children.js) | 4.74 KB | 1.83 KB | 1.62 KB |
40-
| elements (@microsoft/fast-element/node-observation.js) | 88 B | 94 B | 79 B |
41-
| NodeObservationDirective (@microsoft/fast-element/node-observation.js) | 4.27 KB | 1.67 KB | 1.47 KB |
4229
| ref (@microsoft/fast-element/ref.js) | 3.78 KB | 1.52 KB | 1.34 KB |
43-
| RefDirective (@microsoft/fast-element/ref.js) | 3.77 KB | 1.52 KB | 1.33 KB |
4430
| slotted (@microsoft/fast-element/slotted.js) | 4.60 KB | 1.79 KB | 1.58 KB |
45-
| SlottedDirective (@microsoft/fast-element/slotted.js) | 4.53 KB | 1.76 KB | 1.55 KB |
4631
| volatile (@microsoft/fast-element/volatile.js) | 6.79 KB | 2.53 KB | 2.25 KB |
4732
| when (@microsoft/fast-element/when.js) | 1.82 KB | 712 B | 565 B |
4833
| html (@microsoft/fast-element/html.js) | 25.92 KB | 8.50 KB | 7.61 KB |
49-
| ViewTemplate (@microsoft/fast-element/html.js) | 25.92 KB | 8.50 KB | 7.62 KB |
5034
| repeat (@microsoft/fast-element/repeat.js) | 29.57 KB | 9.41 KB | 8.47 KB |
51-
| RepeatBehavior (@microsoft/fast-element/repeat.js) | 29.04 KB | 9.25 KB | 8.32 KB |
52-
| RepeatDirective (@microsoft/fast-element/repeat.js) | 29.04 KB | 9.26 KB | 8.32 KB |
5335
| css (@microsoft/fast-element/css.js) | 2.43 KB | 1.00 KB | 911 B |
54-
| ArrayObserver (@microsoft/fast-element/array-observer.js) | 12.51 KB | 4.45 KB | 4.01 KB |
55-
| DOM (@microsoft/fast-element/dom.js) | 2.33 KB | 923 B | 771 B |
56-
| DOMAspect (@microsoft/fast-element/dom.js) | 2.33 KB | 927 B | 777 B |
5736
| enableHydration (@microsoft/fast-element/hydration.js) | 43.25 KB | 13.22 KB | 11.89 KB |
58-
| HydrationTracker (@microsoft/fast-element/hydration.js) | 807 B | 349 B | 294 B |
59-
| isHydratable (@microsoft/fast-element/hydration.js) | 2.78 KB | 1020 B | 839 B |
60-
| HydrationBindingError (@microsoft/fast-element/hydration.js) | 16.39 KB | 5.26 KB | 4.67 KB |
61-
| render (@microsoft/fast-element/render.js) | 36.76 KB | 11.75 KB | 10.56 KB |
62-
| RenderBehavior (@microsoft/fast-element/render.js) | 35.66 KB | 11.49 KB | 10.30 KB |
63-
| RenderDirective (@microsoft/fast-element/render.js) | 35.66 KB | 11.48 KB | 10.30 KB |
64-
| Schema (@microsoft/fast-element/schema.js) | 3.12 KB | 1.01 KB | 919 B |
65-
| schemaRegistry (@microsoft/fast-element/schema.js) | 43 B | 63 B | 47 B |
66-
| Compiler (@microsoft/fast-element/templating.js) | 24.40 KB | 7.97 KB | 7.13 KB |
67-
| HTMLBindingDirective (@microsoft/fast-element/templating.js) | 20.82 KB | 6.72 KB | 6.01 KB |
68-
| HTMLDirective (@microsoft/fast-element/templating.js) | 3.68 KB | 1.48 KB | 1.29 KB |
69-
| htmlDirective (@microsoft/fast-element/templating.js) | 3.73 KB | 1.50 KB | 1.31 KB |
70-
| StatelessAttachedAttributeDirective (@microsoft/fast-element/templating.js) | 3.70 KB | 1.49 KB | 1.30 KB |
71-
| Markup (@microsoft/fast-element/templating.js) | 501 B | 341 B | 292 B |
72-
| Parser (@microsoft/fast-element/templating.js) | 501 B | 340 B | 291 B |
73-
| InlineTemplateDirective (@microsoft/fast-element/templating.js) | 25.93 KB | 8.50 KB | 7.62 KB |
74-
| HTMLView (@microsoft/fast-element/templating.js) | 8.99 KB | 3.20 KB | 2.85 KB |
75-
| declarativeTemplate (@microsoft/fast-element/declarative.js) | 58.72 KB | 18.43 KB | 16.45 KB |
37+
| ArrayObserver (@microsoft/fast-element/array-observer.js) | 12.51 KB | 4.45 KB | 4.01 KB |
7638
| observerMap (@microsoft/fast-element/observer-map.js) | 20.36 KB | 7.23 KB | 6.50 KB |
7739
| attributeMap (@microsoft/fast-element/attribute-map.js) | 15.61 KB | 5.52 KB | 4.97 KB |

0 commit comments

Comments
 (0)