@tramvai/cli 5.53.80 → 6.62.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 (401) hide show
  1. package/bin/spawn.js +8 -2
  2. package/lib/api/start/application.experimental.d.ts +7 -0
  3. package/lib/api/start/application.experimental.d.ts.map +1 -0
  4. package/lib/api/start/application.experimental.js +275 -0
  5. package/lib/api/start/application.experimental.js.map +1 -0
  6. package/lib/api/start/index.d.ts +1 -0
  7. package/lib/api/start/index.d.ts.map +1 -1
  8. package/lib/api/start/index.js +17 -6
  9. package/lib/api/start/index.js.map +1 -1
  10. package/lib/builder/webpack/devServer/setup.d.ts.map +1 -1
  11. package/lib/builder/webpack/devServer/setup.js +3 -1
  12. package/lib/builder/webpack/devServer/setup.js.map +1 -1
  13. package/lib/builder/webpack/providers/analyze/shared.d.ts.map +1 -1
  14. package/lib/builder/webpack/providers/analyze/shared.js +5 -9
  15. package/lib/builder/webpack/providers/analyze/shared.js.map +1 -1
  16. package/lib/builder/webpack/providers/client.d.ts.map +1 -1
  17. package/lib/builder/webpack/providers/client.js +10 -9
  18. package/lib/builder/webpack/providers/client.js.map +1 -1
  19. package/lib/builder/webpack/providers/server.d.ts.map +1 -1
  20. package/lib/builder/webpack/providers/server.js +10 -9
  21. package/lib/builder/webpack/providers/server.js.map +1 -1
  22. package/lib/cli/CLI.d.ts +1 -1
  23. package/lib/cli/CLI.d.ts.map +1 -1
  24. package/lib/cli/CLI.js.map +1 -1
  25. package/lib/cli/bin-init.js +0 -2
  26. package/lib/cli/bin-init.js.map +1 -1
  27. package/lib/cli/index.d.ts.map +1 -1
  28. package/lib/cli/index.js +1 -12
  29. package/lib/cli/index.js.map +1 -1
  30. package/lib/cli/runCLI.d.ts.map +1 -1
  31. package/lib/cli/runCLI.js.map +1 -1
  32. package/lib/commands/add/command.d.ts +1 -4
  33. package/lib/commands/add/command.d.ts.map +1 -1
  34. package/lib/commands/add/command.js +3 -2
  35. package/lib/commands/add/command.js.map +1 -1
  36. package/lib/commands/analyze/command.d.ts +1 -1
  37. package/lib/commands/analyze/command.d.ts.map +1 -1
  38. package/lib/commands/analyze/command.js +11 -13
  39. package/lib/commands/analyze/command.js.map +1 -1
  40. package/lib/commands/benchmark/command.d.ts +1 -1
  41. package/lib/commands/benchmark/command.d.ts.map +1 -1
  42. package/lib/commands/benchmark/command.js +8 -9
  43. package/lib/commands/benchmark/command.js.map +1 -1
  44. package/lib/commands/build/build.d.ts.map +1 -1
  45. package/lib/commands/build/build.js +1 -0
  46. package/lib/commands/build/build.js.map +1 -1
  47. package/lib/commands/build/command.d.ts +1 -1
  48. package/lib/commands/build/command.d.ts.map +1 -1
  49. package/lib/commands/build/command.js +12 -15
  50. package/lib/commands/build/command.js.map +1 -1
  51. package/lib/commands/generate/command.d.ts +1 -1
  52. package/lib/commands/generate/command.d.ts.map +1 -1
  53. package/lib/commands/generate/command.js +3 -2
  54. package/lib/commands/generate/command.js.map +1 -1
  55. package/lib/commands/lint/command.d.ts +1 -1
  56. package/lib/commands/lint/command.d.ts.map +1 -1
  57. package/lib/commands/lint/command.js +3 -2
  58. package/lib/commands/lint/command.js.map +1 -1
  59. package/lib/commands/new/command.d.ts +0 -1
  60. package/lib/commands/new/command.d.ts.map +1 -1
  61. package/lib/commands/new/command.js +0 -1
  62. package/lib/commands/new/command.js.map +1 -1
  63. package/lib/commands/new/steps/installDependencies.js +3 -3
  64. package/lib/commands/new/steps/installDependencies.js.map +1 -1
  65. package/lib/commands/start/command.d.ts +1 -1
  66. package/lib/commands/start/command.d.ts.map +1 -1
  67. package/lib/commands/start/command.js +18 -15
  68. package/lib/commands/start/command.js.map +1 -1
  69. package/lib/commands/start-prod/command.d.ts +1 -1
  70. package/lib/commands/start-prod/command.d.ts.map +1 -1
  71. package/lib/commands/start-prod/command.js +11 -13
  72. package/lib/commands/start-prod/command.js.map +1 -1
  73. package/lib/commands/static/command.d.ts +1 -1
  74. package/lib/commands/static/command.d.ts.map +1 -1
  75. package/lib/commands/static/command.js +7 -3
  76. package/lib/commands/static/command.js.map +1 -1
  77. package/lib/commands/update/command.d.ts +1 -4
  78. package/lib/commands/update/command.d.ts.map +1 -1
  79. package/lib/commands/update/command.js +3 -2
  80. package/lib/commands/update/command.js.map +1 -1
  81. package/lib/external/config.d.ts.map +1 -1
  82. package/lib/external/config.js.map +1 -1
  83. package/lib/library/babel/index.d.ts +3 -9
  84. package/lib/library/babel/index.d.ts.map +1 -1
  85. package/lib/library/babel/index.js +3 -132
  86. package/lib/library/babel/index.js.map +1 -1
  87. package/lib/library/swc/index.d.ts +3 -3
  88. package/lib/library/swc/index.d.ts.map +1 -1
  89. package/lib/library/swc/index.js +4 -114
  90. package/lib/library/swc/index.js.map +1 -1
  91. package/lib/library/webpack/application/client/common.d.ts.map +1 -1
  92. package/lib/library/webpack/application/client/common.js +10 -9
  93. package/lib/library/webpack/application/client/common.js.map +1 -1
  94. package/lib/library/webpack/application/common.d.ts.map +1 -1
  95. package/lib/library/webpack/application/common.js +3 -4
  96. package/lib/library/webpack/application/common.js.map +1 -1
  97. package/lib/library/webpack/blocks/pwa/client.d.ts.map +1 -1
  98. package/lib/library/webpack/blocks/pwa/client.js +9 -58
  99. package/lib/library/webpack/blocks/pwa/client.js.map +1 -1
  100. package/lib/library/webpack/blocks/resolve.d.ts.map +1 -1
  101. package/lib/library/webpack/blocks/resolve.js +1 -0
  102. package/lib/library/webpack/blocks/resolve.js.map +1 -1
  103. package/lib/library/webpack/child-app/client/common.d.ts.map +1 -1
  104. package/lib/library/webpack/child-app/client/common.js +2 -2
  105. package/lib/library/webpack/child-app/client/common.js.map +1 -1
  106. package/lib/library/webpack/child-app/common.d.ts.map +1 -1
  107. package/lib/library/webpack/child-app/common.js +3 -4
  108. package/lib/library/webpack/child-app/common.js.map +1 -1
  109. package/lib/library/webpack/utils/threadLoader.d.ts.map +1 -1
  110. package/lib/library/webpack/utils/threadLoader.js +20 -3
  111. package/lib/library/webpack/utils/threadLoader.js.map +1 -1
  112. package/lib/library/webpack/utils/transpiler.js +1 -1
  113. package/lib/library/webpack/utils/transpiler.js.map +1 -1
  114. package/lib/models/analytics/utils.d.ts +2 -1
  115. package/lib/models/analytics/utils.d.ts.map +1 -1
  116. package/lib/models/analytics/utils.js +3 -0
  117. package/lib/models/analytics/utils.js.map +1 -1
  118. package/lib/models/command.d.ts +1 -1
  119. package/lib/models/command.d.ts.map +1 -1
  120. package/lib/models/command.js +1 -1
  121. package/lib/models/command.js.map +1 -1
  122. package/lib/models/context.d.ts +1 -1
  123. package/lib/models/context.d.ts.map +1 -1
  124. package/lib/models/logger.d.ts +0 -1
  125. package/lib/models/logger.d.ts.map +1 -1
  126. package/lib/models/logger.js +2 -3
  127. package/lib/models/logger.js.map +1 -1
  128. package/lib/schema/autogeneratedSchema.json +15 -15
  129. package/lib/typings/configEntry/application.d.ts +1 -1
  130. package/lib/typings/configEntry/application.d.ts.map +1 -1
  131. package/lib/typings/public.d.ts +0 -1
  132. package/lib/typings/public.d.ts.map +1 -1
  133. package/lib/typings/public.js +0 -2
  134. package/lib/typings/public.js.map +1 -1
  135. package/lib/utils/cpu-profile.d.ts.map +1 -1
  136. package/lib/utils/cpu-profile.js +0 -1
  137. package/lib/utils/cpu-profile.js.map +1 -1
  138. package/package.json +23 -27
  139. package/schema.json +15 -15
  140. package/src/api/start/__integration__/start.test.ts +8 -0
  141. package/src/api/start/application.experimental.ts +305 -0
  142. package/src/api/start/index.ts +20 -4
  143. package/src/builder/webpack/devServer/setup.ts +1 -0
  144. package/src/builder/webpack/providers/analyze/shared.ts +6 -10
  145. package/src/builder/webpack/providers/client.ts +15 -10
  146. package/src/builder/webpack/providers/server.ts +15 -10
  147. package/src/cli/CLI.ts +1 -1
  148. package/src/cli/bin-init.ts +0 -2
  149. package/src/cli/index.ts +4 -11
  150. package/src/cli/runCLI.ts +0 -1
  151. package/src/commands/add/command.ts +3 -2
  152. package/src/commands/analyze/command.ts +12 -14
  153. package/src/commands/benchmark/command.ts +9 -10
  154. package/src/commands/build/build.ts +2 -0
  155. package/src/commands/build/command.ts +13 -16
  156. package/src/commands/generate/command.ts +3 -2
  157. package/src/commands/lint/command.ts +3 -2
  158. package/src/commands/new/command.ts +0 -2
  159. package/src/commands/new/steps/installDependencies.ts +3 -3
  160. package/src/commands/new/templates/shared/_prettierrc.js.hbs +1 -1
  161. package/src/commands/start/command.ts +20 -16
  162. package/src/commands/start-prod/command.ts +12 -14
  163. package/src/commands/static/command.ts +7 -3
  164. package/src/commands/update/command.ts +3 -2
  165. package/src/external/config.ts +1 -0
  166. package/src/library/babel/index.ts +3 -160
  167. package/src/library/swc/__integration__/__snapshots__/swc.build.test.ts.snap +46 -28
  168. package/src/library/swc/__integration__/__snapshots__/swc.start.test.ts.snap +12 -8
  169. package/src/library/swc/__integration__/swc.start.test.ts +4 -4
  170. package/src/library/swc/index.ts +3 -139
  171. package/src/library/webpack/application/client/common.ts +12 -7
  172. package/src/library/webpack/application/common.ts +8 -4
  173. package/src/library/webpack/blocks/pwa/client.ts +13 -64
  174. package/src/library/webpack/blocks/resolve.ts +1 -0
  175. package/src/library/webpack/child-app/client/common.ts +2 -2
  176. package/src/library/webpack/child-app/common.ts +7 -5
  177. package/src/library/webpack/utils/threadLoader.ts +21 -0
  178. package/src/library/webpack/utils/transpiler.ts +2 -2
  179. package/src/models/analytics/utils.ts +6 -2
  180. package/src/models/command.ts +3 -4
  181. package/src/models/context.ts +1 -1
  182. package/src/models/logger.ts +1 -3
  183. package/src/schema/autogeneratedSchema.json +15 -15
  184. package/src/typings/configEntry/application.ts +5 -1
  185. package/src/typings/public.ts +0 -2
  186. package/src/utils/cpu-profile.ts +0 -1
  187. package/lib/library/babel/plugins/create-token-pure.d.ts +0 -7
  188. package/lib/library/babel/plugins/create-token-pure.d.ts.map +0 -1
  189. package/lib/library/babel/plugins/create-token-pure.js +0 -39
  190. package/lib/library/babel/plugins/create-token-pure.js.map +0 -1
  191. package/lib/library/babel/plugins/fill-action-name.d.ts +0 -3
  192. package/lib/library/babel/plugins/fill-action-name.d.ts.map +0 -1
  193. package/lib/library/babel/plugins/fill-action-name.js +0 -107
  194. package/lib/library/babel/plugins/fill-action-name.js.map +0 -1
  195. package/lib/library/babel/plugins/fill-declare-action-name.d.ts +0 -6
  196. package/lib/library/babel/plugins/fill-declare-action-name.d.ts.map +0 -1
  197. package/lib/library/babel/plugins/fill-declare-action-name.js +0 -94
  198. package/lib/library/babel/plugins/fill-declare-action-name.js.map +0 -1
  199. package/lib/library/babel/plugins/lazy-component/lazy-component.d.ts +0 -7
  200. package/lib/library/babel/plugins/lazy-component/lazy-component.d.ts.map +0 -1
  201. package/lib/library/babel/plugins/lazy-component/lazy-component.js +0 -75
  202. package/lib/library/babel/plugins/lazy-component/lazy-component.js.map +0 -1
  203. package/lib/library/babel/plugins/lazy-component/legacy-universal-replace.d.ts +0 -14
  204. package/lib/library/babel/plugins/lazy-component/legacy-universal-replace.d.ts.map +0 -1
  205. package/lib/library/babel/plugins/lazy-component/legacy-universal-replace.js +0 -53
  206. package/lib/library/babel/plugins/lazy-component/legacy-universal-replace.js.map +0 -1
  207. package/lib/library/babel/plugins/lazy-component/properties/chunkName.d.ts +0 -3
  208. package/lib/library/babel/plugins/lazy-component/properties/chunkName.d.ts.map +0 -1
  209. package/lib/library/babel/plugins/lazy-component/properties/chunkName.js +0 -133
  210. package/lib/library/babel/plugins/lazy-component/properties/chunkName.js.map +0 -1
  211. package/lib/library/babel/plugins/lazy-component/properties/importAsync.d.ts +0 -3
  212. package/lib/library/babel/plugins/lazy-component/properties/importAsync.d.ts.map +0 -1
  213. package/lib/library/babel/plugins/lazy-component/properties/importAsync.js +0 -11
  214. package/lib/library/babel/plugins/lazy-component/properties/importAsync.js.map +0 -1
  215. package/lib/library/babel/plugins/lazy-component/properties/isReady.d.ts +0 -3
  216. package/lib/library/babel/plugins/lazy-component/properties/isReady.d.ts.map +0 -1
  217. package/lib/library/babel/plugins/lazy-component/properties/isReady.js +0 -14
  218. package/lib/library/babel/plugins/lazy-component/properties/isReady.js.map +0 -1
  219. package/lib/library/babel/plugins/lazy-component/properties/requireAsync.d.ts +0 -3
  220. package/lib/library/babel/plugins/lazy-component/properties/requireAsync.d.ts.map +0 -1
  221. package/lib/library/babel/plugins/lazy-component/properties/requireAsync.js +0 -15
  222. package/lib/library/babel/plugins/lazy-component/properties/requireAsync.js.map +0 -1
  223. package/lib/library/babel/plugins/lazy-component/properties/requireSync.d.ts +0 -3
  224. package/lib/library/babel/plugins/lazy-component/properties/requireSync.d.ts.map +0 -1
  225. package/lib/library/babel/plugins/lazy-component/properties/requireSync.js +0 -16
  226. package/lib/library/babel/plugins/lazy-component/properties/requireSync.js.map +0 -1
  227. package/lib/library/babel/plugins/lazy-component/properties/resolve.d.ts +0 -3
  228. package/lib/library/babel/plugins/lazy-component/properties/resolve.d.ts.map +0 -1
  229. package/lib/library/babel/plugins/lazy-component/properties/resolve.js +0 -14
  230. package/lib/library/babel/plugins/lazy-component/properties/resolve.js.map +0 -1
  231. package/lib/library/babel/plugins/lazy-component/properties/types.d.ts +0 -14
  232. package/lib/library/babel/plugins/lazy-component/properties/types.d.ts.map +0 -1
  233. package/lib/library/babel/plugins/lazy-component/properties/types.js +0 -3
  234. package/lib/library/babel/plugins/lazy-component/properties/types.js.map +0 -1
  235. package/lib/library/babel/plugins/lazy-component/properties/utils/webpackComments.d.ts +0 -14
  236. package/lib/library/babel/plugins/lazy-component/properties/utils/webpackComments.d.ts.map +0 -1
  237. package/lib/library/babel/plugins/lazy-component/properties/utils/webpackComments.js +0 -57
  238. package/lib/library/babel/plugins/lazy-component/properties/utils/webpackComments.js.map +0 -1
  239. package/lib/library/babel/plugins/provider-stack.d.ts +0 -4
  240. package/lib/library/babel/plugins/provider-stack.d.ts.map +0 -1
  241. package/lib/library/babel/plugins/provider-stack.js +0 -63
  242. package/lib/library/babel/plugins/provider-stack.js.map +0 -1
  243. package/lib/library/babel/plugins/react-compiler.d.ts +0 -13
  244. package/lib/library/babel/plugins/react-compiler.d.ts.map +0 -1
  245. package/lib/library/babel/plugins/react-compiler.js +0 -27
  246. package/lib/library/babel/plugins/react-compiler.js.map +0 -1
  247. package/lib/library/babel/plugins/react-element-info-unique.d.ts +0 -26
  248. package/lib/library/babel/plugins/react-element-info-unique.d.ts.map +0 -1
  249. package/lib/library/babel/plugins/react-element-info-unique.js +0 -112
  250. package/lib/library/babel/plugins/react-element-info-unique.js.map +0 -1
  251. package/lib/library/babel/plugins/types.h.d.ts +0 -7
  252. package/lib/library/babel/plugins/types.h.d.ts.map +0 -1
  253. package/lib/library/babel/plugins/types.h.js +0 -3
  254. package/lib/library/babel/plugins/types.h.js.map +0 -1
  255. package/lib/library/webpack/plugins/AssetsIntegritiesPlugin.d.ts +0 -8
  256. package/lib/library/webpack/plugins/AssetsIntegritiesPlugin.d.ts.map +0 -1
  257. package/lib/library/webpack/plugins/AssetsIntegritiesPlugin.js +0 -29
  258. package/lib/library/webpack/plugins/AssetsIntegritiesPlugin.js.map +0 -1
  259. package/lib/library/webpack/plugins/AutoPublicPathPlugin.d.ts +0 -4
  260. package/lib/library/webpack/plugins/AutoPublicPathPlugin.d.ts.map +0 -1
  261. package/lib/library/webpack/plugins/AutoPublicPathPlugin.js +0 -23
  262. package/lib/library/webpack/plugins/AutoPublicPathPlugin.js.map +0 -1
  263. package/lib/library/webpack/plugins/ModuleFederationFixRange.d.ts +0 -24
  264. package/lib/library/webpack/plugins/ModuleFederationFixRange.d.ts.map +0 -1
  265. package/lib/library/webpack/plugins/ModuleFederationFixRange.js +0 -127
  266. package/lib/library/webpack/plugins/ModuleFederationFixRange.js.map +0 -1
  267. package/lib/library/webpack/plugins/ModuleFederationIgnoreEntries.d.ts +0 -15
  268. package/lib/library/webpack/plugins/ModuleFederationIgnoreEntries.d.ts.map +0 -1
  269. package/lib/library/webpack/plugins/ModuleFederationIgnoreEntries.js +0 -49
  270. package/lib/library/webpack/plugins/ModuleFederationIgnoreEntries.js.map +0 -1
  271. package/lib/library/webpack/plugins/PolyfillCondition.d.ts +0 -8
  272. package/lib/library/webpack/plugins/PolyfillCondition.d.ts.map +0 -1
  273. package/lib/library/webpack/plugins/PolyfillCondition.js +0 -46
  274. package/lib/library/webpack/plugins/PolyfillCondition.js.map +0 -1
  275. package/lib/library/webpack/plugins/PurifyStatsPlugin.d.ts +0 -15
  276. package/lib/library/webpack/plugins/PurifyStatsPlugin.d.ts.map +0 -1
  277. package/lib/library/webpack/plugins/PurifyStatsPlugin.js +0 -47
  278. package/lib/library/webpack/plugins/PurifyStatsPlugin.js.map +0 -1
  279. package/lib/library/webpack/plugins/PwaIconsPlugin.d.ts +0 -12
  280. package/lib/library/webpack/plugins/PwaIconsPlugin.d.ts.map +0 -1
  281. package/lib/library/webpack/plugins/PwaIconsPlugin.js +0 -78
  282. package/lib/library/webpack/plugins/PwaIconsPlugin.js.map +0 -1
  283. package/lib/library/webpack/plugins/WebManifestPlugin.d.ts +0 -13
  284. package/lib/library/webpack/plugins/WebManifestPlugin.d.ts.map +0 -1
  285. package/lib/library/webpack/plugins/WebManifestPlugin.js +0 -47
  286. package/lib/library/webpack/plugins/WebManifestPlugin.js.map +0 -1
  287. package/lib/library/webpack/utils/polyfills/const.d.ts +0 -3
  288. package/lib/library/webpack/utils/polyfills/const.d.ts.map +0 -1
  289. package/lib/library/webpack/utils/polyfills/const.js +0 -49
  290. package/lib/library/webpack/utils/polyfills/const.js.map +0 -1
  291. package/lib/library/webpack/utils/polyfills/polyfillCondition.d.ts +0 -8
  292. package/lib/library/webpack/utils/polyfills/polyfillCondition.d.ts.map +0 -1
  293. package/lib/library/webpack/utils/polyfills/polyfillCondition.js +0 -51
  294. package/lib/library/webpack/utils/polyfills/polyfillCondition.js.map +0 -1
  295. package/lib/library/webpack/utils/polyfills/specToFeature.d.ts +0 -7
  296. package/lib/library/webpack/utils/polyfills/specToFeature.d.ts.map +0 -1
  297. package/lib/library/webpack/utils/polyfills/specToFeature.js +0 -207
  298. package/lib/library/webpack/utils/polyfills/specToFeature.js.map +0 -1
  299. package/lib/models/analytics/analytics.d.ts +0 -156
  300. package/lib/models/analytics/analytics.d.ts.map +0 -1
  301. package/lib/models/analytics/analytics.js +0 -259
  302. package/lib/models/analytics/analytics.js.map +0 -1
  303. package/lib/models/analytics/analytics.worker.d.ts +0 -5
  304. package/lib/models/analytics/analytics.worker.d.ts.map +0 -1
  305. package/lib/models/analytics/analytics.worker.js +0 -87
  306. package/lib/models/analytics/analytics.worker.js.map +0 -1
  307. package/lib/typings/pwa/index.d.ts +0 -80
  308. package/lib/typings/pwa/index.d.ts.map +0 -1
  309. package/lib/typings/pwa/index.js +0 -3
  310. package/lib/typings/pwa/index.js.map +0 -1
  311. package/lib/utils/errors.d.ts +0 -7
  312. package/lib/utils/errors.d.ts.map +0 -1
  313. package/lib/utils/errors.js +0 -43
  314. package/lib/utils/errors.js.map +0 -1
  315. package/lib/utils/memoryUsage.d.ts +0 -20
  316. package/lib/utils/memoryUsage.d.ts.map +0 -1
  317. package/lib/utils/memoryUsage.js +0 -51
  318. package/lib/utils/memoryUsage.js.map +0 -1
  319. package/lib/utils/sentry.d.ts +0 -2
  320. package/lib/utils/sentry.d.ts.map +0 -1
  321. package/lib/utils/sentry.js +0 -27
  322. package/lib/utils/sentry.js.map +0 -1
  323. package/src/library/babel/plugins/__fixtures__/create-token-pure/already-has-comment.ts +0 -5
  324. package/src/library/babel/plugins/__fixtures__/create-token-pure/do-nothing.ts +0 -10
  325. package/src/library/babel/plugins/__fixtures__/create-token-pure/from-core.ts +0 -5
  326. package/src/library/babel/plugins/__fixtures__/create-token-pure/from-dippy.ts +0 -5
  327. package/src/library/babel/plugins/__fixtures__/create-token-pure/many-imports.ts +0 -9
  328. package/src/library/babel/plugins/__fixtures__/fill-declare-action-name/import-mixed.ts +0 -17
  329. package/src/library/babel/plugins/__fixtures__/fill-declare-action-name/import-with-name.ts +0 -28
  330. package/src/library/babel/plugins/__fixtures__/fill-declare-action-name/import-without-name.ts +0 -25
  331. package/src/library/babel/plugins/__fixtures__/fill-declare-action-name/require-with-name.ts +0 -21
  332. package/src/library/babel/plugins/__fixtures__/fill-declare-action-name/require-without-name.ts +0 -19
  333. package/src/library/babel/plugins/__fixtures__/lazy-component/base.ts +0 -3
  334. package/src/library/babel/plugins/__fixtures__/lazy-component/cmp.tsx +0 -7
  335. package/src/library/babel/plugins/__fixtures__/lazy-component/comments.ts +0 -7
  336. package/src/library/babel/plugins/__fixtures__/lazy-component/dynamic.ts +0 -3
  337. package/src/library/babel/plugins/__fixtures__/lazy-component/inner/first.tsx +0 -7
  338. package/src/library/babel/plugins/__fixtures__/lazy-component/inner/path/cmp.tsx +0 -7
  339. package/src/library/babel/plugins/__fixtures__/lazy-component/inner/second.tsx +0 -7
  340. package/src/library/babel/plugins/__fixtures__/lazy-component/inner/third.tsx +0 -7
  341. package/src/library/babel/plugins/__fixtures__/lazy-component/lazy+hmr.ts +0 -3
  342. package/src/library/babel/plugins/__fixtures__/lazy-component/long-import.ts +0 -3
  343. package/src/library/babel/plugins/__fixtures__/lazy-component/not-lazy-import.ts +0 -7
  344. package/src/library/babel/plugins/__fixtures__/lazy-component/not-lazy.ts +0 -8
  345. package/src/library/babel/plugins/__fixtures__/legacy-universal-replace/cmp.tsx +0 -7
  346. package/src/library/babel/plugins/__fixtures__/legacy-universal-replace/not-universal.ts +0 -8
  347. package/src/library/babel/plugins/__fixtures__/legacy-universal-replace/platform-legacy.ts +0 -5
  348. package/src/library/babel/plugins/__fixtures__/legacy-universal-replace/react-universal.ts +0 -3
  349. package/src/library/babel/plugins/__fixtures__/legacy-universal-replace/tramvai/react/index.es.ts +0 -3
  350. package/src/library/babel/plugins/__fixtures__/provider-stack/add-stack.ts +0 -22
  351. package/src/library/babel/plugins/__fixtures__/provider-stack/check-function-name.ts +0 -10
  352. package/src/library/babel/plugins/__fixtures__/provider-stack/do-nothing.ts +0 -16
  353. package/src/library/babel/plugins/__fixtures__/provider-stack/error-in-scope.ts +0 -24
  354. package/src/library/babel/plugins/__fixtures__/provider-stack/inside-await.ts +0 -12
  355. package/src/library/babel/plugins/__fixtures__/provider-stack/module-decorator.ts +0 -27
  356. package/src/library/babel/plugins/__snapshots__/create-token-pure.spec.ts.snap +0 -108
  357. package/src/library/babel/plugins/__snapshots__/fill-declare-action-name.spec.ts.snap +0 -264
  358. package/src/library/babel/plugins/__snapshots__/provider-stack.spec.ts.snap +0 -362
  359. package/src/library/babel/plugins/create-token-pure.spec.ts +0 -39
  360. package/src/library/babel/plugins/create-token-pure.ts +0 -47
  361. package/src/library/babel/plugins/fill-action-name.ts +0 -126
  362. package/src/library/babel/plugins/fill-declare-action-name.spec.ts +0 -37
  363. package/src/library/babel/plugins/fill-declare-action-name.ts +0 -110
  364. package/src/library/babel/plugins/lazy-component/__snapshots__/lazy-component.spec.ts.snap +0 -313
  365. package/src/library/babel/plugins/lazy-component/__snapshots__/legacy-universal-replace.spec.ts.snap +0 -114
  366. package/src/library/babel/plugins/lazy-component/lazy-component.spec.ts +0 -46
  367. package/src/library/babel/plugins/lazy-component/lazy-component.ts +0 -91
  368. package/src/library/babel/plugins/lazy-component/legacy-universal-replace.spec.ts +0 -33
  369. package/src/library/babel/plugins/lazy-component/legacy-universal-replace.ts +0 -88
  370. package/src/library/babel/plugins/lazy-component/properties/chunkName.ts +0 -185
  371. package/src/library/babel/plugins/lazy-component/properties/importAsync.ts +0 -8
  372. package/src/library/babel/plugins/lazy-component/properties/isReady.ts +0 -19
  373. package/src/library/babel/plugins/lazy-component/properties/requireAsync.ts +0 -20
  374. package/src/library/babel/plugins/lazy-component/properties/requireSync.ts +0 -21
  375. package/src/library/babel/plugins/lazy-component/properties/resolve.ts +0 -21
  376. package/src/library/babel/plugins/lazy-component/properties/types.ts +0 -20
  377. package/src/library/babel/plugins/lazy-component/properties/utils/webpackComments.ts +0 -61
  378. package/src/library/babel/plugins/provider-stack.spec.ts +0 -55
  379. package/src/library/babel/plugins/provider-stack.ts +0 -88
  380. package/src/library/babel/plugins/react-compiler.ts +0 -39
  381. package/src/library/babel/plugins/react-element-info-unique.ts +0 -144
  382. package/src/library/babel/plugins/types.h.ts +0 -8
  383. package/src/library/webpack/plugins/AssetsIntegritiesPlugin.ts +0 -34
  384. package/src/library/webpack/plugins/AutoPublicPathPlugin.ts +0 -23
  385. package/src/library/webpack/plugins/ModuleFederationFixRange.ts +0 -181
  386. package/src/library/webpack/plugins/ModuleFederationIgnoreEntries.ts +0 -59
  387. package/src/library/webpack/plugins/PolyfillCondition.ts +0 -62
  388. package/src/library/webpack/plugins/PurifyStatsPlugin.ts +0 -57
  389. package/src/library/webpack/plugins/PwaIconsPlugin.ts +0 -94
  390. package/src/library/webpack/plugins/WebManifestPlugin.ts +0 -62
  391. package/src/library/webpack/utils/polyfills/__integration__/__snapshots__/condition.test.ts.snap +0 -1348
  392. package/src/library/webpack/utils/polyfills/__integration__/condition.test.ts +0 -128
  393. package/src/library/webpack/utils/polyfills/const.ts +0 -46
  394. package/src/library/webpack/utils/polyfills/polyfillCondition.ts +0 -63
  395. package/src/library/webpack/utils/polyfills/specToFeature.ts +0 -243
  396. package/src/models/analytics/analytics.ts +0 -488
  397. package/src/models/analytics/analytics.worker.ts +0 -102
  398. package/src/typings/pwa/index.ts +0 -83
  399. package/src/utils/errors.ts +0 -39
  400. package/src/utils/memoryUsage.ts +0 -58
  401. package/src/utils/sentry.ts +0 -25
@@ -1,5 +0,0 @@
1
- declare global {
2
- var __TRAMVAI_EXIT_HANDLERS__: Array<() => Promise<any>>;
3
- }
4
- export {};
5
- //# sourceMappingURL=analytics.worker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"analytics.worker.d.ts","sourceRoot":"","sources":["../../../src/models/analytics/analytics.worker.ts"],"names":[],"mappings":"AAIA,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,yBAAyB,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;CAC1D"}
@@ -1,87 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const node_worker_threads_1 = require("node:worker_threads");
4
- const logger_1 = require("../logger");
5
- const errors_1 = require("../../utils/errors");
6
- const { endpoint, debug, dryRun } = node_worker_threads_1.workerData;
7
- const queue = [];
8
- node_worker_threads_1.parentPort?.on('message', async (message) => {
9
- switch (message.event) {
10
- case 'SEND_EVENT': {
11
- sendEvent(message.payload);
12
- break;
13
- }
14
- case 'EXIT': {
15
- await Promise.allSettled(queue);
16
- node_worker_threads_1.parentPort?.postMessage({ event: 'SHUTDOWN_COMPLETE' });
17
- process.exit(0);
18
- break;
19
- }
20
- }
21
- });
22
- async function sendEvent(event) {
23
- try {
24
- if (debug || dryRun) {
25
- logger_1.logger.event({
26
- type: event.level.toLowerCase(),
27
- event: event.event,
28
- message: event.message,
29
- payload: event,
30
- });
31
- }
32
- if ('error' in event && event.error instanceof Error) {
33
- (0, errors_1.enumerateErrorProperties)(event.error);
34
- }
35
- if (!dryRun) {
36
- const abortController = new AbortController();
37
- setTimeout(() => abortController.abort(new Error('request timeout')), 5000);
38
- const request = fetch(endpoint, {
39
- method: 'POST',
40
- headers: { 'Content-Type': 'application/json' },
41
- body: JSON.stringify([event]),
42
- signal: abortController.signal,
43
- });
44
- queue.push(request);
45
- const response = await request;
46
- if (!response.ok || response.status >= 400) {
47
- logger_1.logger.event({
48
- type: 'error',
49
- event: 'analytics-send-failed',
50
- message: `Error sending analytics data, response with status: ${response.status}`,
51
- });
52
- // prevent infinite loop in case of error
53
- if (event.event !== 'cli:analytics:send-failed') {
54
- sendEvent({
55
- event: 'cli:analytics:send-failed',
56
- level: 'ERROR',
57
- message: `Error sending analytics data, response with status: ${response.status}`,
58
- });
59
- }
60
- }
61
- }
62
- }
63
- catch (error) {
64
- logger_1.logger.event({
65
- type: 'error',
66
- event: 'analytics-send-failed',
67
- message: `Error sending analytics data: ${error instanceof Error ? error.message : String(error)}`,
68
- });
69
- // prevent infinite loop in case of error
70
- if (event.event !== 'cli:analytics:send-failed') {
71
- sendEvent({
72
- event: 'cli:analytics:send-failed',
73
- level: 'ERROR',
74
- message: `Error sending analytics data: ${error instanceof Error ? error.message : String(error)}`,
75
- error,
76
- });
77
- }
78
- }
79
- }
80
- async function runExitHandlersAndQuit(code) {
81
- if (global.__TRAMVAI_EXIT_HANDLERS__) {
82
- await Promise.allSettled(global.__TRAMVAI_EXIT_HANDLERS__.map((handler) => handler()));
83
- }
84
- process.exit(code);
85
- }
86
- process.on('exit', async (code) => runExitHandlersAndQuit(code));
87
- //# sourceMappingURL=analytics.worker.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"analytics.worker.js","sourceRoot":"","sources":["../../../src/models/analytics/analytics.worker.ts"],"names":[],"mappings":"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"}
@@ -1,80 +0,0 @@
1
- export type WebManifestOptions = {
2
- /**
3
- * @title Create webmanifest file
4
- * @default false
5
- */
6
- enabled?: boolean;
7
- /**
8
- * @title Name of generated manifest file (will be placed in "output.client" directory). You can use `[hash]` placeholder for manifest cache busting in production mode
9
- * @default "/manifest.[hash].json"
10
- */
11
- dest?: string;
12
- /**
13
- * @title prefer to use "pwa.sw.scope" instead, this field will be generated automatically
14
- */
15
- scope?: string;
16
- name?: string;
17
- short_name?: string;
18
- description?: string;
19
- start_url?: string;
20
- display?: string;
21
- /**
22
- * @title prefer to use "pwa.meta.themeColor" instead, this field will be generated automatically
23
- */
24
- theme_color?: string;
25
- background_color?: string;
26
- /**
27
- * @title prefer to use "pwa.icon" instead, this field will be generated automatically
28
- */
29
- icons?: Array<PwaIconItem>;
30
- };
31
- export type PwaIconItem = {
32
- src: string;
33
- sizes: string;
34
- type?: string;
35
- density?: number;
36
- purpose?: string;
37
- };
38
- export type PwaIconOptions = {
39
- /**
40
- * @title Path to icon file (relative to "root" directory)
41
- */
42
- src: string;
43
- /**
44
- * @title Folder for generated icons (will be placed in "output.client" directory)
45
- * @default "pwa-icons"
46
- */
47
- dest?: string;
48
- /**
49
- * @title Icon sizes
50
- * @default [36, 48, 72, 96, 144, 192, 512]
51
- */
52
- sizes?: number[];
53
- };
54
- export type PwaMetaOptions = {
55
- /**
56
- * @title "viewport" meta tag
57
- */
58
- viewport?: string;
59
- /**
60
- * @title "theme-color" meta tag
61
- */
62
- themeColor?: string;
63
- /**
64
- * @title "mobile-web-app-capable" meta tag
65
- */
66
- mobileApp?: string;
67
- /**
68
- * @title "apple-mobile-web-app-capable" meta tag
69
- */
70
- mobileAppIOS?: string;
71
- /**
72
- * @title "apple-mobile-web-app-title" meta tag
73
- */
74
- appleTitle?: string;
75
- /**
76
- * @title "apple-mobile-web-app-status-bar-style" meta tag
77
- */
78
- appleStatusBarStyle?: string;
79
- };
80
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typings/pwa/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/typings/pwa/index.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- /**
2
- * @description By default, `Error` properties are not enumerable.
3
- * So when you use `Object.keys()`, `JSON.stringify()`, or `postMessage()`,
4
- * the `message`, `stack`, and `cause` properties are not included.
5
- */
6
- export declare function enumerateErrorProperties(error: Error): void;
7
- //# sourceMappingURL=errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/utils/errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,KAAK,QAiCpD"}
@@ -1,43 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.enumerateErrorProperties = void 0;
4
- /**
5
- * @description By default, `Error` properties are not enumerable.
6
- * So when you use `Object.keys()`, `JSON.stringify()`, or `postMessage()`,
7
- * the `message`, `stack`, and `cause` properties are not included.
8
- */
9
- function enumerateErrorProperties(error) {
10
- Object.defineProperties(error, {
11
- message: {
12
- configurable: true,
13
- enumerable: true,
14
- writable: true,
15
- },
16
- stack: {
17
- configurable: true,
18
- enumerable: true,
19
- // stack is getter
20
- },
21
- cause: {
22
- configurable: true,
23
- enumerable: true,
24
- writable: true,
25
- },
26
- });
27
- if ('cause' in error && typeof error.cause === 'object') {
28
- Object.defineProperties(error.cause, {
29
- message: {
30
- configurable: true,
31
- enumerable: true,
32
- writable: true,
33
- },
34
- stack: {
35
- configurable: true,
36
- enumerable: true,
37
- // stack is getter
38
- },
39
- });
40
- }
41
- }
42
- exports.enumerateErrorProperties = enumerateErrorProperties;
43
- //# sourceMappingURL=errors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/utils/errors.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,SAAgB,wBAAwB,CAAC,KAAY;IACnD,MAAM,CAAC,gBAAgB,CAAC,KAAK,EAAE;QAC7B,OAAO,EAAE;YACP,YAAY,EAAE,IAAI;YAClB,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE,IAAI;SACf;QACD,KAAK,EAAE;YACL,YAAY,EAAE,IAAI;YAClB,UAAU,EAAE,IAAI;YAChB,kBAAkB;SACnB;QACD,KAAK,EAAE;YACL,YAAY,EAAE,IAAI;YAClB,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE,IAAI;SACf;KACF,CAAC,CAAC;IAEH,IAAI,OAAO,IAAI,KAAK,IAAI,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,EAAE;QACvD,MAAM,CAAC,gBAAgB,CAAC,KAAK,CAAC,KAAK,EAAE;YACnC,OAAO,EAAE;gBACP,YAAY,EAAE,IAAI;gBAClB,UAAU,EAAE,IAAI;gBAChB,QAAQ,EAAE,IAAI;aACf;YACD,KAAK,EAAE;gBACL,YAAY,EAAE,IAAI;gBAClB,UAAU,EAAE,IAAI;gBAChB,kBAAkB;aACnB;SACF,CAAC,CAAC;KACJ;AACH,CAAC;AAjCD,4DAiCC"}
@@ -1,20 +0,0 @@
1
- export type MemoryStats = {
2
- maxHeapTotal: number;
3
- maxHeapUsed: number;
4
- maxRss: number;
5
- };
6
- /**
7
- * Creates a memory monitor that tracks maximum memory consumption
8
- *
9
- * @param options Configuration options
10
- * @param options.sampleInterval Interval between memory samples in milliseconds (default: 1000)
11
- * @returns An object with start and stop methods
12
- */
13
- export declare function createMemoryMonitor(options?: {
14
- sampleInterval?: number;
15
- }): {
16
- start(): void;
17
- read(): MemoryStats;
18
- stop(): void;
19
- };
20
- //# sourceMappingURL=memoryUsage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"memoryUsage.d.ts","sourceRoot":"","sources":["../../src/utils/memoryUsage.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,GAAE;IAAE,cAAc,CAAC,EAAE,MAAM,CAAA;CAAO;;YAuBjE,WAAW;;EAqBtB"}
@@ -1,51 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createMemoryMonitor = void 0;
4
- /**
5
- * Creates a memory monitor that tracks maximum memory consumption
6
- *
7
- * @param options Configuration options
8
- * @param options.sampleInterval Interval between memory samples in milliseconds (default: 1000)
9
- * @returns An object with start and stop methods
10
- */
11
- function createMemoryMonitor(options = {}) {
12
- const { sampleInterval = 1000 } = options;
13
- let maxHeapTotal = 0;
14
- let maxHeapUsed = 0;
15
- let maxRss = 0;
16
- let intervalId = null;
17
- return {
18
- start() {
19
- intervalId = setInterval(() => {
20
- const memoryUsage = process.memoryUsage();
21
- maxHeapTotal = Math.max(maxHeapTotal, memoryUsage.heapTotal);
22
- maxHeapUsed = Math.max(maxHeapUsed, memoryUsage.heapUsed);
23
- maxRss = Math.max(maxRss, memoryUsage.rss);
24
- }, sampleInterval);
25
- // Make sure the interval doesn't prevent the process from exiting
26
- if (intervalId.unref) {
27
- intervalId.unref();
28
- }
29
- },
30
- read() {
31
- // Take one final sample to capture the latest memory usage
32
- const memoryUsage = process.memoryUsage();
33
- maxHeapTotal = Math.max(maxHeapTotal, memoryUsage.heapTotal);
34
- maxHeapUsed = Math.max(maxHeapUsed, memoryUsage.heapUsed);
35
- maxRss = Math.max(maxRss, memoryUsage.rss);
36
- return {
37
- maxHeapTotal,
38
- maxHeapUsed,
39
- maxRss,
40
- };
41
- },
42
- stop() {
43
- if (intervalId) {
44
- clearInterval(intervalId);
45
- intervalId = null;
46
- }
47
- },
48
- };
49
- }
50
- exports.createMemoryMonitor = createMemoryMonitor;
51
- //# sourceMappingURL=memoryUsage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"memoryUsage.js","sourceRoot":"","sources":["../../src/utils/memoryUsage.ts"],"names":[],"mappings":";;;AAMA;;;;;;GAMG;AACH,SAAgB,mBAAmB,CAAC,UAAuC,EAAE;IAC3E,MAAM,EAAE,cAAc,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC;IAE1C,IAAI,YAAY,GAAG,CAAC,CAAC;IACrB,IAAI,WAAW,GAAG,CAAC,CAAC;IACpB,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,IAAI,UAAU,GAA0B,IAAI,CAAC;IAE7C,OAAO;QACL,KAAK;YACH,UAAU,GAAG,WAAW,CAAC,GAAG,EAAE;gBAC5B,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;gBAE1C,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;gBAC7D,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;gBAC1D,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;YAC7C,CAAC,EAAE,cAAc,CAAC,CAAC;YAEnB,kEAAkE;YAClE,IAAI,UAAU,CAAC,KAAK,EAAE;gBACpB,UAAU,CAAC,KAAK,EAAE,CAAC;aACpB;QACH,CAAC;QACD,IAAI;YACF,2DAA2D;YAC3D,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;YAE1C,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;YAC7D,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;YAC1D,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;YAE3C,OAAO;gBACL,YAAY;gBACZ,WAAW;gBACX,MAAM;aACP,CAAC;QACJ,CAAC;QACD,IAAI;YACF,IAAI,UAAU,EAAE;gBACd,aAAa,CAAC,UAAU,CAAC,CAAC;gBAC1B,UAAU,GAAG,IAAI,CAAC;aACnB;QACH,CAAC;KACF,CAAC;AACJ,CAAC;AA5CD,kDA4CC"}
@@ -1,2 +0,0 @@
1
- export declare function initSentry(): any;
2
- //# sourceMappingURL=sentry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sentry.d.ts","sourceRoot":"","sources":["../../src/utils/sentry.ts"],"names":[],"mappings":"AAMA,wBAAgB,UAAU,QAkBzB"}
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.initSentry = void 0;
4
- const tslib_1 = require("tslib");
5
- const Sentry = tslib_1.__importStar(require("@sentry/node"));
6
- const packageJson = require('../../package.json');
7
- let localSentry;
8
- function initSentry() {
9
- if (localSentry) {
10
- return localSentry;
11
- }
12
- Sentry.init({
13
- dsn: '',
14
- });
15
- const projectContext = {
16
- pipeline: process?.env.CI_PIPELINE_URL,
17
- job: process?.env.CI_JOB_URL,
18
- repo: process?.env.CI_REPOSITORY_URL,
19
- branch: process?.env.CI_COMMIT_REF_NAME,
20
- version: packageJson?.version,
21
- };
22
- Sentry.setContext('project', projectContext);
23
- localSentry = Sentry;
24
- return localSentry;
25
- }
26
- exports.initSentry = initSentry;
27
- //# sourceMappingURL=sentry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sentry.js","sourceRoot":"","sources":["../../src/utils/sentry.ts"],"names":[],"mappings":";;;;AAAA,6DAAuC;AAEvC,MAAM,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;AAElD,IAAI,WAAW,CAAC;AAEhB,SAAgB,UAAU;IACxB,IAAI,WAAW,EAAE;QACf,OAAO,WAAW,CAAC;KACpB;IACD,MAAM,CAAC,IAAI,CAAC;QACV,GAAG,EAAE,EAAE;KACR,CAAC,CAAC;IACH,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,OAAO,EAAE,GAAG,CAAC,eAAe;QACtC,GAAG,EAAE,OAAO,EAAE,GAAG,CAAC,UAAU;QAC5B,IAAI,EAAE,OAAO,EAAE,GAAG,CAAC,iBAAiB;QACpC,MAAM,EAAE,OAAO,EAAE,GAAG,CAAC,kBAAkB;QACvC,OAAO,EAAE,WAAW,EAAE,OAAO;KAC9B,CAAC;IACF,MAAM,CAAC,UAAU,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;IAE7C,WAAW,GAAG,MAAM,CAAC;IACrB,OAAO,WAAW,CAAC;AACrB,CAAC;AAlBD,gCAkBC"}
@@ -1,5 +0,0 @@
1
- // @ts-ignore
2
- // eslint-disable-next-line import/no-unresolved
3
- import { createToken } from '@tinkoff/dippy';
4
-
5
- export const TOKEN = /* #__PURE__*/ createToken('token');
@@ -1,10 +0,0 @@
1
- // @ts-ignore
2
- // eslint-disable-next-line import/no-unresolved
3
- import { createApp } from '@tramvai/core';
4
- import { Container } from '@tinkoff/dippy';
5
-
6
- const di = new Container();
7
-
8
- createApp({
9
- name: 'test'
10
- });
@@ -1,5 +0,0 @@
1
- // @ts-ignore
2
- // eslint-disable-next-line import/no-unresolved
3
- import { createToken } from '@tramvai/core';
4
-
5
- export const TOKEN = createToken('token');
@@ -1,5 +0,0 @@
1
- // @ts-ignore
2
- // eslint-disable-next-line import/no-unresolved
3
- import { createToken } from '@tinkoff/dippy';
4
-
5
- export const TOKEN = createToken('token');
@@ -1,9 +0,0 @@
1
- // @ts-ignore
2
- // eslint-disable-next-line import/no-unresolved
3
- import { createToken } from '@tinkoff/dippy';
4
- import { Module } from '@tramvai/core'
5
-
6
- export const TOKEN = createToken('token');
7
- const module = Module({
8
- providers: []
9
- });
@@ -1,17 +0,0 @@
1
- import { declareAction } from '@tramvai/core';
2
-
3
- const action = declareAction({
4
- name: 'action',
5
- fn: () => {
6
- console.log('action');
7
- },
8
- });
9
-
10
- const secondAction = declareAction({
11
- fn: () => {
12
- console.log('second action');
13
- },
14
- conditions: {
15
- onlyBrowser: true,
16
- },
17
- });
@@ -1,28 +0,0 @@
1
- import { declareAction } from '@tramvai/core';
2
-
3
- const action = declareAction({
4
- name: 'action',
5
- fn: () => {
6
- console.log('action');
7
- },
8
- });
9
-
10
- const secondAction = declareAction({
11
- name: 'secondAction',
12
- fn: () => {
13
- console.log('second action');
14
- },
15
- conditions: {
16
- onlyBrowser: true,
17
- },
18
- });
19
-
20
- export default declareAction({
21
- name: 'anonymousAction',
22
- fn: () => {
23
- console.log('anonymous action');
24
- },
25
- conditions: {
26
- onlyBrowser: true,
27
- },
28
- });
@@ -1,25 +0,0 @@
1
- import { declareAction } from '@tramvai/core';
2
-
3
- const action = declareAction({
4
- fn: () => {
5
- console.log('action');
6
- },
7
- });
8
-
9
- const secondAction = declareAction({
10
- fn: () => {
11
- console.log('second action');
12
- },
13
- conditions: {
14
- onlyBrowser: true,
15
- },
16
- });
17
-
18
- export default declareAction({
19
- fn: () => {
20
- console.log('anonymous action');
21
- },
22
- conditions: {
23
- onlyBrowser: true,
24
- },
25
- });
@@ -1,21 +0,0 @@
1
- // @ts-ignore
2
- const { declareAction } = require('@tramvai/core');
3
-
4
- // @ts-ignore
5
- const action = declareAction({
6
- name: 'action',
7
- fn: () => {
8
- console.log('action');
9
- },
10
- });
11
-
12
- // @ts-ignore
13
- const secondAction = declareAction({
14
- name: 'secondAction',
15
- fn: () => {
16
- console.log('second action');
17
- },
18
- conditions: {
19
- onlyBrowser: true,
20
- },
21
- });
@@ -1,19 +0,0 @@
1
- // @ts-ignore
2
- const { declareAction } = require('@tramvai/core');
3
-
4
- // @ts-ignore
5
- const action = declareAction({
6
- fn: () => {
7
- console.log('action');
8
- },
9
- });
10
-
11
- // @ts-ignore
12
- const secondAction = declareAction({
13
- fn: () => {
14
- console.log('second action');
15
- },
16
- conditions: {
17
- onlyBrowser: true,
18
- },
19
- });
@@ -1,3 +0,0 @@
1
- import { lazy } from '@tramvai/react';
2
-
3
- lazy(() => import('./cmp'))
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
-
3
- const Cmp = () => {
4
- return <div>cmp</div>;
5
- }
6
-
7
- export default Cmp;
@@ -1,7 +0,0 @@
1
- import { lazy } from '@tramvai/react';
2
-
3
- lazy(() => import(/* webpackChunkName: 'main' */'./inner/first'))
4
- lazy(() => import(/* stupid comments */'./inner/second'))
5
- lazy(() => import(/* webpackPreload: true */'./inner/third'))
6
-
7
- lazy(() => import(/* webpackPrefetch: true, webpackChunkName: "component" */'./cmp'))
@@ -1,3 +0,0 @@
1
- import { lazy } from '@tramvai/react';
2
-
3
- lazy((props) => import(`./inner/${props.name}.js`))
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
-
3
- const FirstCmp = () => {
4
- return <div>First</div>;
5
- }
6
-
7
- export default FirstCmp;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
-
3
- const InnerCmp = () => {
4
- return <div>inner cmp</div>;
5
- }
6
-
7
- export default InnerCmp;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
-
3
- const SecondCmp = () => {
4
- return <div>Second</div>;
5
- }
6
-
7
- export default SecondCmp;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
-
3
- const ThirdCmp = () => {
4
- return <div>Third</div>;
5
- }
6
-
7
- export default ThirdCmp;
@@ -1,3 +0,0 @@
1
- import { lazy } from '@tramvai/react';
2
-
3
- const MainPage = lazy(() => import('./inner/first'));
@@ -1,3 +0,0 @@
1
- import { lazy } from '@tramvai/react';
2
-
3
- lazy(() => import('./inner/path/cmp'))
@@ -1,7 +0,0 @@
1
- import { withError } from '@tramvai/react';
2
-
3
- export const compose = () => {
4
- return (cmp) => {
5
- withError()(cmp);
6
- }
7
- }
@@ -1,8 +0,0 @@
1
- const lazy = (imp) => console.log(imp);
2
- const load = lazy(() => import('./cmp'));
3
-
4
- (async () => {
5
- const {default: cmp} = await import('./cmp');
6
-
7
- console.log((cmp as any).actions)
8
- })();
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
-
3
- const Cmp = () => {
4
- return <div>cmp</div>;
5
- }
6
-
7
- export default Cmp;
@@ -1,8 +0,0 @@
1
- const lazy = (imp) => console.log(imp);
2
- const load = lazy(() => import('./cmp'));
3
-
4
- (async () => {
5
- const {default: cmp} = await import('./cmp');
6
-
7
- console.log((cmp as any).actions)
8
- })();