@ultimat3/core 31.2.0 → 31.3.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/package.json +2 -2
- package/src/config-islands.ts +11 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultimat3/core",
|
|
3
|
-
"version": "31.
|
|
3
|
+
"version": "31.3.0",
|
|
4
4
|
"description": "Ultimate's foundation: errors, context, env, config, clock, ids, logging, telemetry, lifecycle",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ultimate",
|
|
@@ -54,6 +54,6 @@
|
|
|
54
54
|
"test": "bun test"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@ultimat3/schema": "31.
|
|
57
|
+
"@ultimat3/schema": "31.3.0"
|
|
58
58
|
}
|
|
59
59
|
}
|
package/src/config-islands.ts
CHANGED
|
@@ -6,13 +6,17 @@
|
|
|
6
6
|
import { describeValue } from './error-render';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
9
|
+
* Off, the build groups islands by route (`@ultimat3/cli`'s `island-groups.ts`): islands rendered
|
|
10
|
+
* on exactly the same set of routes are one split build, every other island is built alone.
|
|
11
|
+
* `sharedChunks: true` is one group holding every island — ONE split bundle, so a module two
|
|
12
|
+
* islands import is one shared chunk a page fetches once and a browser caches across pages. OFF BY
|
|
13
|
+
* DEFAULT, and the reason is measured rather than cautious: tree shaking across one split build
|
|
14
|
+
* keeps whatever ANY importer uses, so an island that imports one helper from a module other
|
|
15
|
+
* islands use heavily pays for all of it. `examples/dummy`'s plain-DOM update banner went
|
|
16
|
+
* 712 → 16,288 B with it on; one adopter's `/afiliados` with two upload islands went
|
|
17
|
+
* 55,585 → 42,331 B — the win route grouping now takes by default where islands co-render. Turn
|
|
18
|
+
* it on only where cross-page caching of shared code is worth it, and weigh the routes with
|
|
19
|
+
* `x verify`.
|
|
16
20
|
*/
|
|
17
21
|
export interface IslandsConfig {
|
|
18
22
|
readonly sharedChunks: boolean;
|