@utoo/pack 1.4.18 → 1.4.20-alpha.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.
Files changed (2) hide show
  1. package/config_schema.json +98 -0
  2. package/package.json +9 -9
@@ -563,6 +563,93 @@
563
563
  "use-credentials"
564
564
  ]
565
565
  },
566
+ "SchemaCssChunkingConfig": {
567
+ "description": "CSS chunking configuration",
568
+ "anyOf": [
569
+ {
570
+ "type": "boolean"
571
+ },
572
+ {
573
+ "$ref": "#/definitions/SchemaCssChunkingMode"
574
+ },
575
+ {
576
+ "$ref": "#/definitions/SchemaCssChunkingObject"
577
+ }
578
+ ]
579
+ },
580
+ "SchemaCssChunkingMode": {
581
+ "description": "CSS chunking mode",
582
+ "type": "string",
583
+ "enum": [
584
+ "strict",
585
+ "loose",
586
+ "graph"
587
+ ]
588
+ },
589
+ "SchemaCssChunkingObject": {
590
+ "description": "CSS chunking object configuration",
591
+ "oneOf": [
592
+ {
593
+ "type": "object",
594
+ "required": [
595
+ "type"
596
+ ],
597
+ "properties": {
598
+ "type": {
599
+ "type": "string",
600
+ "enum": [
601
+ "strict"
602
+ ]
603
+ }
604
+ }
605
+ },
606
+ {
607
+ "type": "object",
608
+ "required": [
609
+ "type"
610
+ ],
611
+ "properties": {
612
+ "type": {
613
+ "type": "string",
614
+ "enum": [
615
+ "loose"
616
+ ]
617
+ }
618
+ }
619
+ },
620
+ {
621
+ "description": "Graph CSS chunking options",
622
+ "type": "object",
623
+ "required": [
624
+ "type"
625
+ ],
626
+ "properties": {
627
+ "requestCost": {
628
+ "description": "Estimated cost of an additional request, in bytes",
629
+ "type": [
630
+ "number",
631
+ "null"
632
+ ],
633
+ "format": "float"
634
+ },
635
+ "type": {
636
+ "type": "string",
637
+ "enum": [
638
+ "graph"
639
+ ]
640
+ },
641
+ "weightDistribution": {
642
+ "description": "Weight distribution used by the graph CSS chunking algorithm",
643
+ "type": [
644
+ "number",
645
+ "null"
646
+ ],
647
+ "format": "float"
648
+ }
649
+ }
650
+ }
651
+ ]
652
+ },
566
653
  "SchemaCssModulesConfig": {
567
654
  "description": "CSS Modules configuration",
568
655
  "type": "object",
@@ -1190,6 +1277,17 @@
1190
1277
  "null"
1191
1278
  ]
1192
1279
  },
1280
+ "cssChunking": {
1281
+ "description": "CSS chunking algorithm",
1282
+ "anyOf": [
1283
+ {
1284
+ "$ref": "#/definitions/SchemaCssChunkingConfig"
1285
+ },
1286
+ {
1287
+ "type": "null"
1288
+ }
1289
+ ]
1290
+ },
1193
1291
  "minify": {
1194
1292
  "description": "Whether to minify the output",
1195
1293
  "type": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/pack",
3
- "version": "1.4.18",
3
+ "version": "1.4.20-alpha.0",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "types": "esm/index.d.ts",
@@ -41,7 +41,7 @@
41
41
  "@hono/node-server": "^1.19.11",
42
42
  "@hono/node-ws": "^1.3.0",
43
43
  "@swc/helpers": "0.5.15",
44
- "@utoo/pack-shared": "1.4.18",
44
+ "@utoo/pack-shared": "1.4.20-alpha.0",
45
45
  "domparser-rs": "^0.0.7",
46
46
  "find-up": "4.1.0",
47
47
  "get-port": "5.1.1",
@@ -96,12 +96,12 @@
96
96
  "directory": "packages/pack"
97
97
  },
98
98
  "optionalDependencies": {
99
- "@utoo/pack-darwin-arm64": "1.4.18",
100
- "@utoo/pack-darwin-x64": "1.4.18",
101
- "@utoo/pack-linux-arm64-gnu": "1.4.18",
102
- "@utoo/pack-linux-arm64-musl": "1.4.18",
103
- "@utoo/pack-linux-x64-gnu": "1.4.18",
104
- "@utoo/pack-linux-x64-musl": "1.4.18",
105
- "@utoo/pack-win32-x64-msvc": "1.4.18"
99
+ "@utoo/pack-darwin-arm64": "1.4.20-alpha.0",
100
+ "@utoo/pack-darwin-x64": "1.4.20-alpha.0",
101
+ "@utoo/pack-linux-arm64-gnu": "1.4.20-alpha.0",
102
+ "@utoo/pack-linux-arm64-musl": "1.4.20-alpha.0",
103
+ "@utoo/pack-linux-x64-gnu": "1.4.20-alpha.0",
104
+ "@utoo/pack-linux-x64-musl": "1.4.20-alpha.0",
105
+ "@utoo/pack-win32-x64-msvc": "1.4.20-alpha.0"
106
106
  }
107
107
  }