@tramvai/cli 5.53.81 → 5.53.94

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 (149) hide show
  1. package/README.md +1 -1
  2. package/lib/api/analyze/index.d.ts.map +1 -1
  3. package/lib/api/analyze/index.js +1 -13
  4. package/lib/api/analyze/index.js.map +1 -1
  5. package/lib/api/benchmark/build.d.ts +1 -6
  6. package/lib/api/benchmark/build.d.ts.map +1 -1
  7. package/lib/api/benchmark/build.js +59 -23
  8. package/lib/api/benchmark/build.js.map +1 -1
  9. package/lib/api/benchmark/const.d.ts +2 -0
  10. package/lib/api/benchmark/const.d.ts.map +1 -0
  11. package/lib/api/benchmark/const.js +5 -0
  12. package/lib/api/benchmark/const.js.map +1 -0
  13. package/lib/api/benchmark/index.d.ts +4 -6
  14. package/lib/api/benchmark/index.d.ts.map +1 -1
  15. package/lib/api/benchmark/index.js.map +1 -1
  16. package/lib/api/benchmark/start.d.ts +1 -7
  17. package/lib/api/benchmark/start.d.ts.map +1 -1
  18. package/lib/api/benchmark/start.js +56 -49
  19. package/lib/api/benchmark/start.js.map +1 -1
  20. package/lib/api/benchmark/types.d.ts +76 -12
  21. package/lib/api/benchmark/types.d.ts.map +1 -1
  22. package/lib/api/benchmark/utils/compilationUtils.d.ts +4 -0
  23. package/lib/api/benchmark/utils/compilationUtils.d.ts.map +1 -0
  24. package/lib/api/benchmark/utils/compilationUtils.js +157 -0
  25. package/lib/api/benchmark/utils/compilationUtils.js.map +1 -0
  26. package/lib/api/benchmark/utils/stats.d.ts +2 -7
  27. package/lib/api/benchmark/utils/stats.d.ts.map +1 -1
  28. package/lib/api/benchmark/utils/stats.js +36 -22
  29. package/lib/api/benchmark/utils/stats.js.map +1 -1
  30. package/lib/api/build/index.d.ts +1 -0
  31. package/lib/api/build/index.d.ts.map +1 -1
  32. package/lib/api/build/index.js.map +1 -1
  33. package/lib/api/index.js +1 -1
  34. package/lib/api/index.js.map +1 -1
  35. package/lib/api/start/index.d.ts +1 -0
  36. package/lib/api/start/index.d.ts.map +1 -1
  37. package/lib/api/start/index.js.map +1 -1
  38. package/lib/builder/webpack/analyzePlugins/rsdoctor.d.ts +5 -5
  39. package/lib/builder/webpack/analyzePlugins/rsdoctor.d.ts.map +1 -1
  40. package/lib/builder/webpack/analyzePlugins/rsdoctor.js +7 -9
  41. package/lib/builder/webpack/analyzePlugins/rsdoctor.js.map +1 -1
  42. package/lib/builder/webpack/index.d.ts.map +1 -1
  43. package/lib/builder/webpack/index.js +14 -12
  44. package/lib/builder/webpack/index.js.map +1 -1
  45. package/lib/builder/webpack/providers/build/client.d.ts.map +1 -1
  46. package/lib/builder/webpack/providers/build/client.js +3 -2
  47. package/lib/builder/webpack/providers/build/client.js.map +1 -1
  48. package/lib/builder/webpack/providers/build/server.d.ts.map +1 -1
  49. package/lib/builder/webpack/providers/build/server.js +3 -2
  50. package/lib/builder/webpack/providers/build/server.js.map +1 -1
  51. package/lib/builder/webpack/providers/shared.d.ts.map +1 -1
  52. package/lib/builder/webpack/providers/shared.js +39 -5
  53. package/lib/builder/webpack/providers/shared.js.map +1 -1
  54. package/lib/builder/webpack/providers/start/shared.d.ts.map +1 -1
  55. package/lib/builder/webpack/providers/start/shared.js +6 -2
  56. package/lib/builder/webpack/providers/start/shared.js.map +1 -1
  57. package/lib/builder/webpack/tokens.d.ts +8 -16
  58. package/lib/builder/webpack/tokens.d.ts.map +1 -1
  59. package/lib/cli/index.d.ts.map +1 -1
  60. package/lib/cli/index.js +12 -12
  61. package/lib/cli/index.js.map +1 -1
  62. package/lib/commands/analyze/command.d.ts +1 -1
  63. package/lib/commands/analyze/command.d.ts.map +1 -1
  64. package/lib/commands/benchmark/benchmark.d.ts +3 -1
  65. package/lib/commands/benchmark/benchmark.d.ts.map +1 -1
  66. package/lib/commands/benchmark/benchmark.js +130 -31
  67. package/lib/commands/benchmark/benchmark.js.map +1 -1
  68. package/lib/commands/benchmark/command.d.ts +9 -0
  69. package/lib/commands/benchmark/command.d.ts.map +1 -1
  70. package/lib/commands/benchmark/command.js +12 -0
  71. package/lib/commands/benchmark/command.js.map +1 -1
  72. package/lib/commands/build/command.d.ts.map +1 -1
  73. package/lib/commands/build/command.js +5 -0
  74. package/lib/commands/build/command.js.map +1 -1
  75. package/lib/commands/start/command.d.ts.map +1 -1
  76. package/lib/commands/start/command.js +5 -0
  77. package/lib/commands/start/command.js.map +1 -1
  78. package/lib/config/configManager.d.ts +2 -0
  79. package/lib/config/configManager.d.ts.map +1 -1
  80. package/lib/config/configManager.js +2 -0
  81. package/lib/config/configManager.js.map +1 -1
  82. package/lib/di/tokens/config.d.ts +4 -8
  83. package/lib/di/tokens/config.d.ts.map +1 -1
  84. package/lib/library/webpack/blocks/js.d.ts.map +1 -1
  85. package/lib/library/webpack/blocks/js.js +57 -11
  86. package/lib/library/webpack/blocks/js.js.map +1 -1
  87. package/lib/library/webpack/common/main.d.ts.map +1 -1
  88. package/lib/library/webpack/common/main.js +7 -0
  89. package/lib/library/webpack/common/main.js.map +1 -1
  90. package/lib/library/webpack/utils/rsdoctor.d.ts +2 -0
  91. package/lib/library/webpack/utils/rsdoctor.d.ts.map +1 -0
  92. package/lib/library/webpack/utils/rsdoctor.js +27 -0
  93. package/lib/library/webpack/utils/rsdoctor.js.map +1 -0
  94. package/lib/library/webpack/utils/threadLoader.d.ts.map +1 -1
  95. package/lib/library/webpack/utils/threadLoader.js +3 -3
  96. package/lib/library/webpack/utils/threadLoader.js.map +1 -1
  97. package/lib/schema/autogeneratedSchema.json +228 -120
  98. package/lib/typings/build/Builder.d.ts +6 -2
  99. package/lib/typings/build/Builder.d.ts.map +1 -1
  100. package/lib/typings/configEntry/cli.d.ts +5 -0
  101. package/lib/typings/configEntry/cli.d.ts.map +1 -1
  102. package/package.json +16 -17
  103. package/schema.json +228 -120
  104. package/src/api/analyze/index.ts +3 -16
  105. package/src/api/benchmark/__integration__/start.test.ts +10 -12
  106. package/src/api/benchmark/build.ts +75 -30
  107. package/src/api/benchmark/const.ts +1 -0
  108. package/src/api/benchmark/index.ts +4 -6
  109. package/src/api/benchmark/start.ts +69 -65
  110. package/src/api/benchmark/types.ts +82 -14
  111. package/src/api/benchmark/utils/compilationUtils.ts +213 -0
  112. package/src/api/benchmark/utils/stats.ts +45 -28
  113. package/src/api/build/index.ts +1 -0
  114. package/src/api/index.ts +1 -1
  115. package/src/api/start/index.ts +1 -0
  116. package/src/builder/webpack/analyzePlugins/rsdoctor.ts +11 -14
  117. package/src/builder/webpack/index.ts +16 -21
  118. package/src/builder/webpack/providers/build/client.ts +7 -2
  119. package/src/builder/webpack/providers/build/server.ts +7 -2
  120. package/src/builder/webpack/providers/shared.ts +53 -5
  121. package/src/builder/webpack/providers/start/shared.ts +7 -2
  122. package/src/cli/index.ts +3 -2
  123. package/src/commands/analyze/command.ts +1 -1
  124. package/src/commands/benchmark/benchmark.ts +168 -33
  125. package/src/commands/benchmark/command.ts +12 -0
  126. package/src/commands/build/command.ts +6 -0
  127. package/src/commands/new/templates/shared/package.json.hbs +1 -1
  128. package/src/commands/start/command.ts +6 -0
  129. package/src/config/configManager.ts +4 -0
  130. package/src/library/webpack/blocks/js.ts +61 -12
  131. package/src/library/webpack/common/main.ts +8 -0
  132. package/src/library/webpack/utils/rsdoctor.ts +26 -0
  133. package/src/library/webpack/utils/threadLoader.ts +1 -0
  134. package/src/models/config.spec.ts +4 -0
  135. package/src/schema/autogeneratedSchema.json +228 -120
  136. package/src/schema/tramvai.spec.ts +2 -0
  137. package/src/typings/build/Builder.ts +7 -2
  138. package/src/typings/configEntry/cli.ts +6 -0
  139. package/lib/api/analyze/providers/shared.d.ts +0 -3
  140. package/lib/api/analyze/providers/shared.d.ts.map +0 -1
  141. package/lib/api/analyze/providers/shared.js +0 -23
  142. package/lib/api/analyze/providers/shared.js.map +0 -1
  143. package/lib/builder/webpack/providers/analyze/shared.d.ts +0 -3
  144. package/lib/builder/webpack/providers/analyze/shared.d.ts.map +0 -1
  145. package/lib/builder/webpack/providers/analyze/shared.js +0 -141
  146. package/lib/builder/webpack/providers/analyze/shared.js.map +0 -1
  147. package/src/api/analyze/providers/shared.ts +0 -26
  148. package/src/api/benchmark/utils/stats.spec.ts +0 -36
  149. package/src/builder/webpack/providers/analyze/shared.ts +0 -160
@@ -799,49 +799,22 @@
799
799
  "title": "experiments configuration for [webpack](https://webpack.js.org/configuration/experiments/)",
800
800
  "default": {},
801
801
  "type": "object",
802
+ "additionalProperties": false,
803
+ "patternProperties": {
804
+ "^[0-9]+$": {}
805
+ },
802
806
  "properties": {
803
- "asyncWebAssembly": {
804
- "description": "Support WebAssembly as asynchronous EcmaScript Module.",
805
- "type": "boolean"
806
- },
807
- "backCompat": {
808
- "description": "Enable backward-compat layer with deprecation warnings for many webpack 4 APIs.",
809
- "title": "Enable backward compatibility with webpack previous major versions",
810
- "default": false,
811
- "type": "boolean"
812
- },
813
807
  "cacheUnaffected": {
814
- "description": "Enable additional in memory caching of modules that are unchanged and reference only unchanged modules.",
815
808
  "title": "Enable additional in-memory caching of modules which are unchanged and reference only unchanged modules.",
816
809
  "default": true,
817
810
  "type": "boolean"
818
811
  },
819
- "futureDefaults": {
820
- "description": "Apply defaults of next major version.",
821
- "type": "boolean"
822
- },
823
- "layers": {
824
- "description": "Enable module layers.",
825
- "type": "boolean"
826
- },
827
- "outputModule": {
828
- "description": "Allow output javascript files as module source type.",
829
- "type": "boolean"
830
- },
831
- "syncWebAssembly": {
832
- "description": "Support WebAssembly as synchronous EcmaScript Module (outdated).",
833
- "type": "boolean"
834
- },
835
- "topLevelAwait": {
836
- "description": "Allow using top-level-await in EcmaScript Modules.",
837
- "type": "boolean"
838
- },
839
- "deferImport": {
840
- "description": "Enable experimental tc39 proposal https://github.com/tc39/proposal-defer-import-eval. This allows to defer execution of a module until it's first use.",
812
+ "backCompat": {
813
+ "title": "Enable backward compatibility with webpack previous major versions",
814
+ "default": false,
841
815
  "type": "boolean"
842
816
  }
843
- },
844
- "additionalProperties": false
817
+ }
845
818
  },
846
819
  "minicss": {
847
820
  "title": "experimental settings for [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin)",
@@ -911,6 +884,69 @@
911
884
  "type": "string"
912
885
  }
913
886
  ]
887
+ },
888
+ "include": {
889
+ "cli_overridable": "",
890
+ "title": "customize transpiling of node_modules in prod/dev environments",
891
+ "default": "only-modern",
892
+ "anyOf": [
893
+ {
894
+ "type": "array",
895
+ "items": {
896
+ "type": "string"
897
+ }
898
+ },
899
+ {
900
+ "type": "object",
901
+ "properties": {
902
+ "development": {
903
+ "anyOf": [
904
+ {
905
+ "type": "array",
906
+ "items": {
907
+ "type": "string"
908
+ }
909
+ },
910
+ {
911
+ "enum": [
912
+ "all",
913
+ "none",
914
+ "only-modern"
915
+ ],
916
+ "type": "string"
917
+ }
918
+ ]
919
+ },
920
+ "production": {
921
+ "anyOf": [
922
+ {
923
+ "type": "array",
924
+ "items": {
925
+ "type": "string"
926
+ }
927
+ },
928
+ {
929
+ "enum": [
930
+ "all",
931
+ "none",
932
+ "only-modern"
933
+ ],
934
+ "type": "string"
935
+ }
936
+ ]
937
+ }
938
+ },
939
+ "additionalProperties": false
940
+ },
941
+ {
942
+ "enum": [
943
+ "all",
944
+ "none",
945
+ "only-modern"
946
+ ],
947
+ "type": "string"
948
+ }
949
+ ]
914
950
  }
915
951
  },
916
952
  "additionalProperties": false
@@ -1289,23 +1325,23 @@
1289
1325
  "dotAll": {
1290
1326
  "type": "boolean"
1291
1327
  },
1292
- "__@match@8074": {
1328
+ "__@match@8175": {
1293
1329
  "type": "object",
1294
1330
  "additionalProperties": false
1295
1331
  },
1296
- "__@replace@8076": {
1332
+ "__@replace@8177": {
1297
1333
  "type": "object",
1298
1334
  "additionalProperties": false
1299
1335
  },
1300
- "__@search@8079": {
1336
+ "__@search@8180": {
1301
1337
  "type": "object",
1302
1338
  "additionalProperties": false
1303
1339
  },
1304
- "__@split@8081": {
1340
+ "__@split@8182": {
1305
1341
  "type": "object",
1306
1342
  "additionalProperties": false
1307
1343
  },
1308
- "__@matchAll@8083": {
1344
+ "__@matchAll@8184": {
1309
1345
  "type": "object",
1310
1346
  "additionalProperties": false
1311
1347
  }
@@ -1701,49 +1737,22 @@
1701
1737
  "title": "experiments configuration for [webpack](https://webpack.js.org/configuration/experiments/)",
1702
1738
  "default": {},
1703
1739
  "type": "object",
1740
+ "additionalProperties": false,
1741
+ "patternProperties": {
1742
+ "^[0-9]+$": {}
1743
+ },
1704
1744
  "properties": {
1705
- "asyncWebAssembly": {
1706
- "description": "Support WebAssembly as asynchronous EcmaScript Module.",
1707
- "type": "boolean"
1708
- },
1709
- "backCompat": {
1710
- "description": "Enable backward-compat layer with deprecation warnings for many webpack 4 APIs.",
1711
- "title": "Enable backward compatibility with webpack previous major versions",
1712
- "default": false,
1713
- "type": "boolean"
1714
- },
1715
1745
  "cacheUnaffected": {
1716
- "description": "Enable additional in memory caching of modules that are unchanged and reference only unchanged modules.",
1717
1746
  "title": "Enable additional in-memory caching of modules which are unchanged and reference only unchanged modules.",
1718
1747
  "default": true,
1719
1748
  "type": "boolean"
1720
1749
  },
1721
- "futureDefaults": {
1722
- "description": "Apply defaults of next major version.",
1723
- "type": "boolean"
1724
- },
1725
- "layers": {
1726
- "description": "Enable module layers.",
1727
- "type": "boolean"
1728
- },
1729
- "outputModule": {
1730
- "description": "Allow output javascript files as module source type.",
1731
- "type": "boolean"
1732
- },
1733
- "syncWebAssembly": {
1734
- "description": "Support WebAssembly as synchronous EcmaScript Module (outdated).",
1735
- "type": "boolean"
1736
- },
1737
- "topLevelAwait": {
1738
- "description": "Allow using top-level-await in EcmaScript Modules.",
1739
- "type": "boolean"
1740
- },
1741
- "deferImport": {
1742
- "description": "Enable experimental tc39 proposal https://github.com/tc39/proposal-defer-import-eval. This allows to defer execution of a module until it's first use.",
1750
+ "backCompat": {
1751
+ "title": "Enable backward compatibility with webpack previous major versions",
1752
+ "default": false,
1743
1753
  "type": "boolean"
1744
1754
  }
1745
- },
1746
- "additionalProperties": false
1755
+ }
1747
1756
  },
1748
1757
  "minicss": {
1749
1758
  "title": "experimental settings for [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin)",
@@ -1813,6 +1822,69 @@
1813
1822
  "type": "string"
1814
1823
  }
1815
1824
  ]
1825
+ },
1826
+ "include": {
1827
+ "cli_overridable": "",
1828
+ "title": "customize transpiling of node_modules in prod/dev environments",
1829
+ "default": "only-modern",
1830
+ "anyOf": [
1831
+ {
1832
+ "type": "array",
1833
+ "items": {
1834
+ "type": "string"
1835
+ }
1836
+ },
1837
+ {
1838
+ "type": "object",
1839
+ "properties": {
1840
+ "development": {
1841
+ "anyOf": [
1842
+ {
1843
+ "type": "array",
1844
+ "items": {
1845
+ "type": "string"
1846
+ }
1847
+ },
1848
+ {
1849
+ "enum": [
1850
+ "all",
1851
+ "none",
1852
+ "only-modern"
1853
+ ],
1854
+ "type": "string"
1855
+ }
1856
+ ]
1857
+ },
1858
+ "production": {
1859
+ "anyOf": [
1860
+ {
1861
+ "type": "array",
1862
+ "items": {
1863
+ "type": "string"
1864
+ }
1865
+ },
1866
+ {
1867
+ "enum": [
1868
+ "all",
1869
+ "none",
1870
+ "only-modern"
1871
+ ],
1872
+ "type": "string"
1873
+ }
1874
+ ]
1875
+ }
1876
+ },
1877
+ "additionalProperties": false
1878
+ },
1879
+ {
1880
+ "enum": [
1881
+ "all",
1882
+ "none",
1883
+ "only-modern"
1884
+ ],
1885
+ "type": "string"
1886
+ }
1887
+ ]
1816
1888
  }
1817
1889
  },
1818
1890
  "additionalProperties": false
@@ -2084,23 +2156,23 @@
2084
2156
  "dotAll": {
2085
2157
  "type": "boolean"
2086
2158
  },
2087
- "__@match@8074": {
2159
+ "__@match@8175": {
2088
2160
  "type": "object",
2089
2161
  "additionalProperties": false
2090
2162
  },
2091
- "__@replace@8076": {
2163
+ "__@replace@8177": {
2092
2164
  "type": "object",
2093
2165
  "additionalProperties": false
2094
2166
  },
2095
- "__@search@8079": {
2167
+ "__@search@8180": {
2096
2168
  "type": "object",
2097
2169
  "additionalProperties": false
2098
2170
  },
2099
- "__@split@8081": {
2171
+ "__@split@8182": {
2100
2172
  "type": "object",
2101
2173
  "additionalProperties": false
2102
2174
  },
2103
- "__@matchAll@8083": {
2175
+ "__@matchAll@8184": {
2104
2176
  "type": "object",
2105
2177
  "additionalProperties": false
2106
2178
  }
@@ -2496,49 +2568,22 @@
2496
2568
  "title": "experiments configuration for [webpack](https://webpack.js.org/configuration/experiments/)",
2497
2569
  "default": {},
2498
2570
  "type": "object",
2571
+ "additionalProperties": false,
2572
+ "patternProperties": {
2573
+ "^[0-9]+$": {}
2574
+ },
2499
2575
  "properties": {
2500
- "asyncWebAssembly": {
2501
- "description": "Support WebAssembly as asynchronous EcmaScript Module.",
2502
- "type": "boolean"
2503
- },
2504
- "backCompat": {
2505
- "description": "Enable backward-compat layer with deprecation warnings for many webpack 4 APIs.",
2506
- "title": "Enable backward compatibility with webpack previous major versions",
2507
- "default": false,
2508
- "type": "boolean"
2509
- },
2510
2576
  "cacheUnaffected": {
2511
- "description": "Enable additional in memory caching of modules that are unchanged and reference only unchanged modules.",
2512
2577
  "title": "Enable additional in-memory caching of modules which are unchanged and reference only unchanged modules.",
2513
2578
  "default": true,
2514
2579
  "type": "boolean"
2515
2580
  },
2516
- "futureDefaults": {
2517
- "description": "Apply defaults of next major version.",
2518
- "type": "boolean"
2519
- },
2520
- "layers": {
2521
- "description": "Enable module layers.",
2522
- "type": "boolean"
2523
- },
2524
- "outputModule": {
2525
- "description": "Allow output javascript files as module source type.",
2526
- "type": "boolean"
2527
- },
2528
- "syncWebAssembly": {
2529
- "description": "Support WebAssembly as synchronous EcmaScript Module (outdated).",
2530
- "type": "boolean"
2531
- },
2532
- "topLevelAwait": {
2533
- "description": "Allow using top-level-await in EcmaScript Modules.",
2534
- "type": "boolean"
2535
- },
2536
- "deferImport": {
2537
- "description": "Enable experimental tc39 proposal https://github.com/tc39/proposal-defer-import-eval. This allows to defer execution of a module until it's first use.",
2581
+ "backCompat": {
2582
+ "title": "Enable backward compatibility with webpack previous major versions",
2583
+ "default": false,
2538
2584
  "type": "boolean"
2539
2585
  }
2540
- },
2541
- "additionalProperties": false
2586
+ }
2542
2587
  },
2543
2588
  "minicss": {
2544
2589
  "title": "experimental settings for [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin)",
@@ -2608,6 +2653,69 @@
2608
2653
  "type": "string"
2609
2654
  }
2610
2655
  ]
2656
+ },
2657
+ "include": {
2658
+ "cli_overridable": "",
2659
+ "title": "customize transpiling of node_modules in prod/dev environments",
2660
+ "default": "only-modern",
2661
+ "anyOf": [
2662
+ {
2663
+ "type": "array",
2664
+ "items": {
2665
+ "type": "string"
2666
+ }
2667
+ },
2668
+ {
2669
+ "type": "object",
2670
+ "properties": {
2671
+ "development": {
2672
+ "anyOf": [
2673
+ {
2674
+ "type": "array",
2675
+ "items": {
2676
+ "type": "string"
2677
+ }
2678
+ },
2679
+ {
2680
+ "enum": [
2681
+ "all",
2682
+ "none",
2683
+ "only-modern"
2684
+ ],
2685
+ "type": "string"
2686
+ }
2687
+ ]
2688
+ },
2689
+ "production": {
2690
+ "anyOf": [
2691
+ {
2692
+ "type": "array",
2693
+ "items": {
2694
+ "type": "string"
2695
+ }
2696
+ },
2697
+ {
2698
+ "enum": [
2699
+ "all",
2700
+ "none",
2701
+ "only-modern"
2702
+ ],
2703
+ "type": "string"
2704
+ }
2705
+ ]
2706
+ }
2707
+ },
2708
+ "additionalProperties": false
2709
+ },
2710
+ {
2711
+ "enum": [
2712
+ "all",
2713
+ "none",
2714
+ "only-modern"
2715
+ ],
2716
+ "type": "string"
2717
+ }
2718
+ ]
2611
2719
  }
2612
2720
  },
2613
2721
  "additionalProperties": false
@@ -2879,23 +2987,23 @@
2879
2987
  "dotAll": {
2880
2988
  "type": "boolean"
2881
2989
  },
2882
- "__@match@8074": {
2990
+ "__@match@8175": {
2883
2991
  "type": "object",
2884
2992
  "additionalProperties": false
2885
2993
  },
2886
- "__@replace@8076": {
2994
+ "__@replace@8177": {
2887
2995
  "type": "object",
2888
2996
  "additionalProperties": false
2889
2997
  },
2890
- "__@search@8079": {
2998
+ "__@search@8180": {
2891
2999
  "type": "object",
2892
3000
  "additionalProperties": false
2893
3001
  },
2894
- "__@split@8081": {
3002
+ "__@split@8182": {
2895
3003
  "type": "object",
2896
3004
  "additionalProperties": false
2897
3005
  },
2898
- "__@matchAll@8083": {
3006
+ "__@matchAll@8184": {
2899
3007
  "type": "object",
2900
3008
  "additionalProperties": false
2901
3009
  }
@@ -105,6 +105,7 @@ describe('JSON schema для tramvai.json', () => {
105
105
  "runtimeChunk": false,
106
106
  "serverRunner": "thread",
107
107
  "transpilation": {
108
+ "include": "only-modern",
108
109
  "loader": "babel",
109
110
  },
110
111
  "viewTransitions": false,
@@ -181,6 +182,7 @@ describe('JSON schema для tramvai.json', () => {
181
182
  "minifier": "terser",
182
183
  "reactCompiler": false,
183
184
  "transpilation": {
185
+ "include": "only-modern",
184
186
  "loader": "babel",
185
187
  },
186
188
  "webpack": {
@@ -34,9 +34,14 @@ interface BuilderAnalyzeOptions {
34
34
  plugin?: string;
35
35
  }
36
36
 
37
+ export type BuildStats = {
38
+ maxMemoryRss?: number;
39
+ buildTime: number;
40
+ };
41
+
37
42
  export type GetBuildStats = () => {
38
- clientBuildTime?: number;
39
- serverBuildTime?: number;
43
+ client?: BuildStats;
44
+ server?: BuildStats;
40
45
  maxMemoryRss?: number;
41
46
  };
42
47
 
@@ -75,6 +75,12 @@ export type TranspilationExperiments = {
75
75
  * @default "babel"
76
76
  */
77
77
  loader: OverridableOption<TranspilationLoader>;
78
+
79
+ /**
80
+ * @title customize transpiling of node_modules in prod/dev environments
81
+ * @default "only-modern"
82
+ */
83
+ include?: OverridableOption<'all' | 'only-modern' | 'none' | string[]>;
78
84
  };
79
85
 
80
86
  export interface Experiments {
@@ -1,3 +0,0 @@
1
- import type { Provider } from '@tinkoff/dippy';
2
- export declare const sharedProviders: readonly Provider[];
3
- //# sourceMappingURL=shared.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/api/analyze/providers/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAU/C,eAAO,MAAM,eAAe,EAAE,SAAS,QAAQ,EAe9C,CAAC"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sharedProviders = void 0;
4
- const dippy_1 = require("@tinkoff/dippy");
5
- const tokens_1 = require("../../../di/tokens");
6
- const configManager_1 = require("../../../config/configManager");
7
- exports.sharedProviders = [
8
- (0, dippy_1.provide)({
9
- provide: tokens_1.CONFIG_MANAGER_TOKEN,
10
- useFactory: ({ configEntry, parameters }) => {
11
- return (0, configManager_1.createConfigManager)(configEntry, {
12
- ...parameters,
13
- env: 'production',
14
- buildType: 'client',
15
- });
16
- },
17
- deps: {
18
- configEntry: tokens_1.CONFIG_ENTRY_TOKEN,
19
- parameters: tokens_1.COMMAND_PARAMETERS_TOKEN,
20
- },
21
- }),
22
- ];
23
- //# sourceMappingURL=shared.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../src/api/analyze/providers/shared.ts"],"names":[],"mappings":";;;AACA,0CAAyC;AACzC,+CAI4B;AAC5B,iEAAoE;AAGvD,QAAA,eAAe,GAAwB;IAClD,IAAA,eAAO,EAAC;QACN,OAAO,EAAE,6BAAoB;QAC7B,UAAU,EAAE,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,EAAE,EAAE;YAC1C,OAAO,IAAA,mCAAmB,EAAC,WAA6B,EAAE;gBACxD,GAAG,UAAU;gBACb,GAAG,EAAE,YAAY;gBACjB,SAAS,EAAE,QAAQ;aACpB,CAAC,CAAC;QACL,CAAC;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,2BAAkB;YAC/B,UAAU,EAAE,iCAAwB;SACrC;KACF,CAAC;CACH,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { Provider } from '@tinkoff/dippy';
2
- export declare const analyzeSharedProviders: Provider[];
3
- //# sourceMappingURL=shared.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../../src/builder/webpack/providers/analyze/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAwC/C,eAAO,MAAM,sBAAsB,EAAE,QAAQ,EAuH5C,CAAC"}