@modern-js/app-tools 2.8.1-alpha.3 → 2.10.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 (290) hide show
  1. package/CHANGELOG.md +100 -0
  2. package/dist/cjs/analyze/generateCode.js +3 -1
  3. package/dist/cjs/analyze/index.js +8 -0
  4. package/dist/cjs/analyze/templates.js +45 -14
  5. package/dist/cjs/builder/builder-rspack/index.js +22 -1
  6. package/dist/cjs/builder/shared/builderPlugins/adapterSSR.js +6 -3
  7. package/dist/cjs/builder/shared/bundlerPlugins/RouterPlugin.js +3 -0
  8. package/dist/esm/analyze/generateCode.js +3 -2
  9. package/dist/esm/analyze/index.js +8 -0
  10. package/dist/esm/analyze/templates.js +54 -16
  11. package/dist/esm/builder/builder-rspack/index.js +169 -1
  12. package/dist/esm/builder/shared/builderPlugins/adapterSSR.js +10 -3
  13. package/dist/esm/builder/shared/bundlerPlugins/RouterPlugin.js +3 -0
  14. package/dist/esm-node/analyze/generateCode.js +3 -1
  15. package/dist/esm-node/analyze/index.js +8 -0
  16. package/dist/esm-node/analyze/templates.js +45 -14
  17. package/dist/esm-node/builder/builder-rspack/index.js +12 -1
  18. package/dist/esm-node/builder/shared/builderPlugins/adapterSSR.js +7 -4
  19. package/dist/esm-node/builder/shared/bundlerPlugins/RouterPlugin.js +3 -0
  20. package/dist/types/analyze/templates.d.ts +3 -1
  21. package/dist/types/builder/builder-rspack/index.d.ts +2 -1
  22. package/dist/types/types/config/output.d.ts +1 -0
  23. package/package.json +31 -27
  24. package/dist/js/modern/analyze/constants.js +0 -56
  25. package/dist/js/modern/analyze/generateCode.js +0 -247
  26. package/dist/js/modern/analyze/getBundleEntry.js +0 -71
  27. package/dist/js/modern/analyze/getClientRoutes/getRoutes.js +0 -220
  28. package/dist/js/modern/analyze/getClientRoutes/getRoutesLegacy.js +0 -216
  29. package/dist/js/modern/analyze/getClientRoutes/index.js +0 -6
  30. package/dist/js/modern/analyze/getClientRoutes/utils.js +0 -31
  31. package/dist/js/modern/analyze/getFileSystemEntry.js +0 -109
  32. package/dist/js/modern/analyze/getHtmlTemplate.js +0 -115
  33. package/dist/js/modern/analyze/getServerRoutes.js +0 -178
  34. package/dist/js/modern/analyze/index.js +0 -333
  35. package/dist/js/modern/analyze/isDefaultExportFunction.js +0 -42
  36. package/dist/js/modern/analyze/makeLegalIdentifier.js +0 -13
  37. package/dist/js/modern/analyze/nestedRoutes.js +0 -186
  38. package/dist/js/modern/analyze/templates.js +0 -328
  39. package/dist/js/modern/analyze/utils.js +0 -141
  40. package/dist/js/modern/builder/builder-rspack/index.js +0 -8
  41. package/dist/js/modern/builder/builder-webpack/builderPlugins/compatModern.js +0 -41
  42. package/dist/js/modern/builder/builder-webpack/index.js +0 -93
  43. package/dist/js/modern/builder/builder-webpack/webpackPlugins/RouterPlugin.js +0 -116
  44. package/dist/js/modern/builder/builder-webpack/webpackPlugins/index.js +0 -1
  45. package/dist/js/modern/builder/generator/createBuilderOptions.js +0 -24
  46. package/dist/js/modern/builder/generator/createBuilderProviderConfig.js +0 -39
  47. package/dist/js/modern/builder/generator/getBuilderTargets.js +0 -21
  48. package/dist/js/modern/builder/generator/index.js +0 -53
  49. package/dist/js/modern/builder/index.js +0 -39
  50. package/dist/js/modern/builder/shared/builderPlugins/adapterModern.js +0 -219
  51. package/dist/js/modern/builder/shared/bundlerPlugins/HtmlAsyncChunkPlugin.js +0 -27
  52. package/dist/js/modern/builder/shared/bundlerPlugins/HtmlBottomTemplate.js +0 -34
  53. package/dist/js/modern/builder/shared/createCopyPattern.js +0 -46
  54. package/dist/js/modern/builder/shared/index.js +0 -3
  55. package/dist/js/modern/builder/shared/loaders/serverModuleLoader.js +0 -7
  56. package/dist/js/modern/builder/shared/types.js +0 -0
  57. package/dist/js/modern/commands/build.js +0 -91
  58. package/dist/js/modern/commands/deploy.js +0 -28
  59. package/dist/js/modern/commands/dev.js +0 -109
  60. package/dist/js/modern/commands/index.js +0 -3
  61. package/dist/js/modern/commands/inspect.js +0 -38
  62. package/dist/js/modern/commands/serve.js +0 -54
  63. package/dist/js/modern/config/default.js +0 -175
  64. package/dist/js/modern/config/index.js +0 -3
  65. package/dist/js/modern/config/initialize/index.js +0 -12
  66. package/dist/js/modern/config/initialize/inits.js +0 -154
  67. package/dist/js/modern/config/legacy/createHtmlConfig.js +0 -35
  68. package/dist/js/modern/config/legacy/createOutputConfig.js +0 -68
  69. package/dist/js/modern/config/legacy/createSourceConfig.js +0 -39
  70. package/dist/js/modern/config/legacy/createToolsConfig.js +0 -42
  71. package/dist/js/modern/config/legacy/index.js +0 -51
  72. package/dist/js/modern/defineConfig.js +0 -27
  73. package/dist/js/modern/exports/server.js +0 -4
  74. package/dist/js/modern/hooks.js +0 -35
  75. package/dist/js/modern/index.js +0 -221
  76. package/dist/js/modern/initialize/index.js +0 -132
  77. package/dist/js/modern/locale/en.js +0 -36
  78. package/dist/js/modern/locale/index.js +0 -9
  79. package/dist/js/modern/locale/zh.js +0 -36
  80. package/dist/js/modern/schema/Schema.js +0 -40
  81. package/dist/js/modern/schema/index.js +0 -88
  82. package/dist/js/modern/schema/legacy.js +0 -148
  83. package/dist/js/modern/types/config/deploy.js +0 -0
  84. package/dist/js/modern/types/config/dev.js +0 -0
  85. package/dist/js/modern/types/config/experiments.js +0 -0
  86. package/dist/js/modern/types/config/html.js +0 -0
  87. package/dist/js/modern/types/config/index.js +0 -1
  88. package/dist/js/modern/types/config/output.js +0 -0
  89. package/dist/js/modern/types/config/performance.js +0 -0
  90. package/dist/js/modern/types/config/security.js +0 -0
  91. package/dist/js/modern/types/config/source.js +0 -0
  92. package/dist/js/modern/types/config/tools.js +0 -0
  93. package/dist/js/modern/types/hooks.js +0 -0
  94. package/dist/js/modern/types/index.js +0 -3
  95. package/dist/js/modern/types/legacyConfig/deploy.js +0 -0
  96. package/dist/js/modern/types/legacyConfig/dev.js +0 -0
  97. package/dist/js/modern/types/legacyConfig/index.js +0 -0
  98. package/dist/js/modern/types/legacyConfig/output.js +0 -0
  99. package/dist/js/modern/types/legacyConfig/source.js +0 -0
  100. package/dist/js/modern/types/legacyConfig/tools.js +0 -0
  101. package/dist/js/modern/types/utils.js +0 -0
  102. package/dist/js/modern/utils/config.js +0 -128
  103. package/dist/js/modern/utils/createServer.js +0 -75
  104. package/dist/js/modern/utils/env.js +0 -15
  105. package/dist/js/modern/utils/generateWatchFiles.js +0 -55
  106. package/dist/js/modern/utils/getSelectedEntries.js +0 -58
  107. package/dist/js/modern/utils/getServerInternalPlugins.js +0 -58
  108. package/dist/js/modern/utils/language.js +0 -8
  109. package/dist/js/modern/utils/printInstructions.js +0 -31
  110. package/dist/js/modern/utils/restart.js +0 -44
  111. package/dist/js/modern/utils/routes.js +0 -30
  112. package/dist/js/modern/utils/types.js +0 -0
  113. package/dist/js/node/analyze/constants.js +0 -100
  114. package/dist/js/node/analyze/generateCode.js +0 -271
  115. package/dist/js/node/analyze/getBundleEntry.js +0 -95
  116. package/dist/js/node/analyze/getClientRoutes/getRoutes.js +0 -242
  117. package/dist/js/node/analyze/getClientRoutes/getRoutesLegacy.js +0 -238
  118. package/dist/js/node/analyze/getClientRoutes/index.js +0 -30
  119. package/dist/js/node/analyze/getClientRoutes/utils.js +0 -58
  120. package/dist/js/node/analyze/getFileSystemEntry.js +0 -131
  121. package/dist/js/node/analyze/getHtmlTemplate.js +0 -144
  122. package/dist/js/node/analyze/getServerRoutes.js +0 -196
  123. package/dist/js/node/analyze/index.js +0 -340
  124. package/dist/js/node/analyze/isDefaultExportFunction.js +0 -71
  125. package/dist/js/node/analyze/makeLegalIdentifier.js +0 -36
  126. package/dist/js/node/analyze/nestedRoutes.js +0 -213
  127. package/dist/js/node/analyze/templates.js +0 -359
  128. package/dist/js/node/analyze/utils.js +0 -172
  129. package/dist/js/node/builder/builder-rspack/index.js +0 -31
  130. package/dist/js/node/builder/builder-webpack/builderPlugins/compatModern.js +0 -64
  131. package/dist/js/node/builder/builder-webpack/index.js +0 -118
  132. package/dist/js/node/builder/builder-webpack/webpackPlugins/RouterPlugin.js +0 -140
  133. package/dist/js/node/builder/builder-webpack/webpackPlugins/index.js +0 -17
  134. package/dist/js/node/builder/generator/createBuilderOptions.js +0 -47
  135. package/dist/js/node/builder/generator/createBuilderProviderConfig.js +0 -60
  136. package/dist/js/node/builder/generator/getBuilderTargets.js +0 -39
  137. package/dist/js/node/builder/generator/index.js +0 -82
  138. package/dist/js/node/builder/index.js +0 -68
  139. package/dist/js/node/builder/shared/builderPlugins/adapterModern.js +0 -245
  140. package/dist/js/node/builder/shared/bundlerPlugins/HtmlAsyncChunkPlugin.js +0 -50
  141. package/dist/js/node/builder/shared/bundlerPlugins/HtmlBottomTemplate.js +0 -57
  142. package/dist/js/node/builder/shared/createCopyPattern.js +0 -75
  143. package/dist/js/node/builder/shared/index.js +0 -19
  144. package/dist/js/node/builder/shared/loaders/serverModuleLoader.js +0 -28
  145. package/dist/js/node/builder/shared/types.js +0 -15
  146. package/dist/js/node/commands/build.js +0 -112
  147. package/dist/js/node/commands/deploy.js +0 -51
  148. package/dist/js/node/commands/dev.js +0 -126
  149. package/dist/js/node/commands/index.js +0 -19
  150. package/dist/js/node/commands/inspect.js +0 -61
  151. package/dist/js/node/commands/serve.js +0 -83
  152. package/dist/js/node/config/default.js +0 -197
  153. package/dist/js/node/config/index.js +0 -19
  154. package/dist/js/node/config/initialize/index.js +0 -35
  155. package/dist/js/node/config/initialize/inits.js +0 -177
  156. package/dist/js/node/config/legacy/createHtmlConfig.js +0 -58
  157. package/dist/js/node/config/legacy/createOutputConfig.js +0 -91
  158. package/dist/js/node/config/legacy/createSourceConfig.js +0 -62
  159. package/dist/js/node/config/legacy/createToolsConfig.js +0 -65
  160. package/dist/js/node/config/legacy/index.js +0 -75
  161. package/dist/js/node/defineConfig.js +0 -49
  162. package/dist/js/node/exports/server.js +0 -27
  163. package/dist/js/node/hooks.js +0 -54
  164. package/dist/js/node/index.js +0 -245
  165. package/dist/js/node/initialize/index.js +0 -141
  166. package/dist/js/node/locale/en.js +0 -59
  167. package/dist/js/node/locale/index.js +0 -33
  168. package/dist/js/node/locale/zh.js +0 -59
  169. package/dist/js/node/schema/Schema.js +0 -63
  170. package/dist/js/node/schema/index.js +0 -118
  171. package/dist/js/node/schema/legacy.js +0 -169
  172. package/dist/js/node/types/config/deploy.js +0 -15
  173. package/dist/js/node/types/config/dev.js +0 -15
  174. package/dist/js/node/types/config/experiments.js +0 -15
  175. package/dist/js/node/types/config/html.js +0 -15
  176. package/dist/js/node/types/config/index.js +0 -17
  177. package/dist/js/node/types/config/output.js +0 -15
  178. package/dist/js/node/types/config/performance.js +0 -15
  179. package/dist/js/node/types/config/security.js +0 -15
  180. package/dist/js/node/types/config/source.js +0 -15
  181. package/dist/js/node/types/config/tools.js +0 -15
  182. package/dist/js/node/types/hooks.js +0 -15
  183. package/dist/js/node/types/index.js +0 -19
  184. package/dist/js/node/types/legacyConfig/deploy.js +0 -15
  185. package/dist/js/node/types/legacyConfig/dev.js +0 -15
  186. package/dist/js/node/types/legacyConfig/index.js +0 -15
  187. package/dist/js/node/types/legacyConfig/output.js +0 -15
  188. package/dist/js/node/types/legacyConfig/source.js +0 -15
  189. package/dist/js/node/types/legacyConfig/tools.js +0 -15
  190. package/dist/js/node/types/utils.js +0 -15
  191. package/dist/js/node/utils/config.js +0 -153
  192. package/dist/js/node/utils/createServer.js +0 -106
  193. package/dist/js/node/utils/env.js +0 -38
  194. package/dist/js/node/utils/generateWatchFiles.js +0 -85
  195. package/dist/js/node/utils/getSelectedEntries.js +0 -81
  196. package/dist/js/node/utils/getServerInternalPlugins.js +0 -79
  197. package/dist/js/node/utils/language.js +0 -31
  198. package/dist/js/node/utils/printInstructions.js +0 -54
  199. package/dist/js/node/utils/restart.js +0 -67
  200. package/dist/js/node/utils/routes.js +0 -59
  201. package/dist/js/node/utils/types.js +0 -15
  202. package/dist/js/treeshaking/analyze/constants.js +0 -42
  203. package/dist/js/treeshaking/analyze/generateCode.js +0 -485
  204. package/dist/js/treeshaking/analyze/getBundleEntry.js +0 -62
  205. package/dist/js/treeshaking/analyze/getClientRoutes/getRoutes.js +0 -233
  206. package/dist/js/treeshaking/analyze/getClientRoutes/getRoutesLegacy.js +0 -231
  207. package/dist/js/treeshaking/analyze/getClientRoutes/index.js +0 -3
  208. package/dist/js/treeshaking/analyze/getClientRoutes/utils.js +0 -23
  209. package/dist/js/treeshaking/analyze/getFileSystemEntry.js +0 -107
  210. package/dist/js/treeshaking/analyze/getHtmlTemplate.js +0 -302
  211. package/dist/js/treeshaking/analyze/getServerRoutes.js +0 -224
  212. package/dist/js/treeshaking/analyze/index.js +0 -702
  213. package/dist/js/treeshaking/analyze/isDefaultExportFunction.js +0 -47
  214. package/dist/js/treeshaking/analyze/makeLegalIdentifier.js +0 -13
  215. package/dist/js/treeshaking/analyze/nestedRoutes.js +0 -409
  216. package/dist/js/treeshaking/analyze/templates.js +0 -465
  217. package/dist/js/treeshaking/analyze/utils.js +0 -374
  218. package/dist/js/treeshaking/builder/builder-rspack/index.js +0 -6
  219. package/dist/js/treeshaking/builder/builder-webpack/builderPlugins/compatModern.js +0 -64
  220. package/dist/js/treeshaking/builder/builder-webpack/index.js +0 -301
  221. package/dist/js/treeshaking/builder/builder-webpack/webpackPlugins/RouterPlugin.js +0 -346
  222. package/dist/js/treeshaking/builder/builder-webpack/webpackPlugins/index.js +0 -1
  223. package/dist/js/treeshaking/builder/generator/createBuilderOptions.js +0 -41
  224. package/dist/js/treeshaking/builder/generator/createBuilderProviderConfig.js +0 -70
  225. package/dist/js/treeshaking/builder/generator/getBuilderTargets.js +0 -16
  226. package/dist/js/treeshaking/builder/generator/index.js +0 -199
  227. package/dist/js/treeshaking/builder/index.js +0 -175
  228. package/dist/js/treeshaking/builder/shared/builderPlugins/adapterModern.js +0 -300
  229. package/dist/js/treeshaking/builder/shared/bundlerPlugins/HtmlAsyncChunkPlugin.js +0 -110
  230. package/dist/js/treeshaking/builder/shared/bundlerPlugins/HtmlBottomTemplate.js +0 -72
  231. package/dist/js/treeshaking/builder/shared/createCopyPattern.js +0 -40
  232. package/dist/js/treeshaking/builder/shared/index.js +0 -3
  233. package/dist/js/treeshaking/builder/shared/loaders/serverModuleLoader.js +0 -5
  234. package/dist/js/treeshaking/builder/shared/types.js +0 -1
  235. package/dist/js/treeshaking/commands/build.js +0 -291
  236. package/dist/js/treeshaking/commands/deploy.js +0 -154
  237. package/dist/js/treeshaking/commands/dev.js +0 -301
  238. package/dist/js/treeshaking/commands/index.js +0 -3
  239. package/dist/js/treeshaking/commands/inspect.js +0 -149
  240. package/dist/js/treeshaking/commands/serve.js +0 -199
  241. package/dist/js/treeshaking/config/default.js +0 -210
  242. package/dist/js/treeshaking/config/index.js +0 -3
  243. package/dist/js/treeshaking/config/initialize/index.js +0 -10
  244. package/dist/js/treeshaking/config/initialize/inits.js +0 -211
  245. package/dist/js/treeshaking/config/legacy/createHtmlConfig.js +0 -19
  246. package/dist/js/treeshaking/config/legacy/createOutputConfig.js +0 -41
  247. package/dist/js/treeshaking/config/legacy/createSourceConfig.js +0 -42
  248. package/dist/js/treeshaking/config/legacy/createToolsConfig.js +0 -23
  249. package/dist/js/treeshaking/config/legacy/index.js +0 -38
  250. package/dist/js/treeshaking/defineConfig.js +0 -61
  251. package/dist/js/treeshaking/exports/server.js +0 -2
  252. package/dist/js/treeshaking/hooks.js +0 -29
  253. package/dist/js/treeshaking/index.js +0 -713
  254. package/dist/js/treeshaking/initialize/index.js +0 -284
  255. package/dist/js/treeshaking/locale/en.js +0 -38
  256. package/dist/js/treeshaking/locale/index.js +0 -9
  257. package/dist/js/treeshaking/locale/zh.js +0 -38
  258. package/dist/js/treeshaking/schema/Schema.js +0 -273
  259. package/dist/js/treeshaking/schema/index.js +0 -181
  260. package/dist/js/treeshaking/schema/legacy.js +0 -337
  261. package/dist/js/treeshaking/types/config/deploy.js +0 -1
  262. package/dist/js/treeshaking/types/config/dev.js +0 -1
  263. package/dist/js/treeshaking/types/config/experiments.js +0 -1
  264. package/dist/js/treeshaking/types/config/html.js +0 -1
  265. package/dist/js/treeshaking/types/config/index.js +0 -1
  266. package/dist/js/treeshaking/types/config/output.js +0 -1
  267. package/dist/js/treeshaking/types/config/performance.js +0 -1
  268. package/dist/js/treeshaking/types/config/security.js +0 -1
  269. package/dist/js/treeshaking/types/config/source.js +0 -1
  270. package/dist/js/treeshaking/types/config/tools.js +0 -1
  271. package/dist/js/treeshaking/types/hooks.js +0 -1
  272. package/dist/js/treeshaking/types/index.js +0 -3
  273. package/dist/js/treeshaking/types/legacyConfig/deploy.js +0 -1
  274. package/dist/js/treeshaking/types/legacyConfig/dev.js +0 -1
  275. package/dist/js/treeshaking/types/legacyConfig/index.js +0 -1
  276. package/dist/js/treeshaking/types/legacyConfig/output.js +0 -1
  277. package/dist/js/treeshaking/types/legacyConfig/source.js +0 -1
  278. package/dist/js/treeshaking/types/legacyConfig/tools.js +0 -1
  279. package/dist/js/treeshaking/types/utils.js +0 -1
  280. package/dist/js/treeshaking/utils/config.js +0 -302
  281. package/dist/js/treeshaking/utils/createServer.js +0 -258
  282. package/dist/js/treeshaking/utils/env.js +0 -13
  283. package/dist/js/treeshaking/utils/generateWatchFiles.js +0 -214
  284. package/dist/js/treeshaking/utils/getSelectedEntries.js +0 -186
  285. package/dist/js/treeshaking/utils/getServerInternalPlugins.js +0 -210
  286. package/dist/js/treeshaking/utils/language.js +0 -6
  287. package/dist/js/treeshaking/utils/printInstructions.js +0 -152
  288. package/dist/js/treeshaking/utils/restart.js +0 -187
  289. package/dist/js/treeshaking/utils/routes.js +0 -153
  290. package/dist/js/treeshaking/utils/types.js +0 -1
@@ -1,6 +1,174 @@
1
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
2
+ try {
3
+ var info = gen[key](arg);
4
+ var value = info.value;
5
+ } catch (error) {
6
+ reject(error);
7
+ return;
8
+ }
9
+ if (info.done) {
10
+ resolve(value);
11
+ } else {
12
+ Promise.resolve(value).then(_next, _throw);
13
+ }
14
+ }
15
+ function _asyncToGenerator(fn) {
16
+ return function() {
17
+ var self = this, args = arguments;
18
+ return new Promise(function(resolve, reject) {
19
+ var gen = fn.apply(self, args);
20
+ function _next(value) {
21
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
22
+ }
23
+ function _throw(err) {
24
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
25
+ }
26
+ _next(undefined);
27
+ });
28
+ };
29
+ }
30
+ var __generator = this && this.__generator || function(thisArg, body) {
31
+ var f, y, t, g, _ = {
32
+ label: 0,
33
+ sent: function() {
34
+ if (t[0] & 1) throw t[1];
35
+ return t[1];
36
+ },
37
+ trys: [],
38
+ ops: []
39
+ };
40
+ return g = {
41
+ next: verb(0),
42
+ "throw": verb(1),
43
+ "return": verb(2)
44
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
45
+ return this;
46
+ }), g;
47
+ function verb(n) {
48
+ return function(v) {
49
+ return step([
50
+ n,
51
+ v
52
+ ]);
53
+ };
54
+ }
55
+ function step(op) {
56
+ if (f) throw new TypeError("Generator is already executing.");
57
+ while(_)try {
58
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
59
+ if (y = 0, t) op = [
60
+ op[0] & 2,
61
+ t.value
62
+ ];
63
+ switch(op[0]){
64
+ case 0:
65
+ case 1:
66
+ t = op;
67
+ break;
68
+ case 4:
69
+ _.label++;
70
+ return {
71
+ value: op[1],
72
+ done: false
73
+ };
74
+ case 5:
75
+ _.label++;
76
+ y = op[1];
77
+ op = [
78
+ 0
79
+ ];
80
+ continue;
81
+ case 7:
82
+ op = _.ops.pop();
83
+ _.trys.pop();
84
+ continue;
85
+ default:
86
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
87
+ _ = 0;
88
+ continue;
89
+ }
90
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
91
+ _.label = op[1];
92
+ break;
93
+ }
94
+ if (op[0] === 6 && _.label < t[1]) {
95
+ _.label = t[1];
96
+ t = op;
97
+ break;
98
+ }
99
+ if (t && _.label < t[2]) {
100
+ _.label = t[2];
101
+ _.ops.push(op);
102
+ break;
103
+ }
104
+ if (t[2]) _.ops.pop();
105
+ _.trys.pop();
106
+ continue;
107
+ }
108
+ op = body.call(thisArg, _);
109
+ } catch (e) {
110
+ op = [
111
+ 6,
112
+ e
113
+ ];
114
+ y = 0;
115
+ } finally{
116
+ f = t = 0;
117
+ }
118
+ if (op[0] & 5) throw op[1];
119
+ return {
120
+ value: op[0] ? op[1] : void 0,
121
+ done: true
122
+ };
123
+ }
124
+ };
1
125
  import { builderRspackProvider } from "@modern-js/builder-rspack-provider";
2
126
  import { generateBuilder } from "../generator";
3
127
  function createRspackBuilderForModern(options) {
4
- return generateBuilder(options, builderRspackProvider);
128
+ return generateBuilder(options, builderRspackProvider, {
129
+ modifyBuilderInstance: function modifyBuilderInstance(builder) {
130
+ return _asyncToGenerator(function() {
131
+ return __generator(this, function(_state) {
132
+ applyBuilderPlugins(builder, options);
133
+ return [
134
+ 2
135
+ ];
136
+ });
137
+ })();
138
+ }
139
+ });
140
+ }
141
+ function applyBuilderPlugins(builder, options) {
142
+ return _applyBuilderPlugins.apply(this, arguments);
143
+ }
144
+ function _applyBuilderPlugins() {
145
+ _applyBuilderPlugins = _asyncToGenerator(function(builder, options) {
146
+ var normalizedConfig, builderPluginNodePolyfill;
147
+ return __generator(this, function(_state) {
148
+ switch(_state.label){
149
+ case 0:
150
+ normalizedConfig = options.normalizedConfig;
151
+ if (!!normalizedConfig.output.disableNodePolyfill) return [
152
+ 3,
153
+ 2
154
+ ];
155
+ return [
156
+ 4,
157
+ import("@modern-js/builder-plugin-node-polyfill")
158
+ ];
159
+ case 1:
160
+ builderPluginNodePolyfill = _state.sent().builderPluginNodePolyfill;
161
+ builder.addPlugins([
162
+ builderPluginNodePolyfill()
163
+ ]);
164
+ _state.label = 2;
165
+ case 2:
166
+ return [
167
+ 2
168
+ ];
169
+ }
170
+ });
171
+ });
172
+ return _applyBuilderPlugins.apply(this, arguments);
5
173
  }
6
174
  export { createRspackBuilderForModern };
@@ -123,7 +123,7 @@ var __generator = this && this.__generator || function(thisArg, body) {
123
123
  }
124
124
  };
125
125
  import { mergeBuilderConfig } from "@modern-js/builder-shared";
126
- import { fs } from "@modern-js/utils";
126
+ import { isSSR, fs } from "@modern-js/utils";
127
127
  import { HtmlAsyncChunkPlugin, RouterPlugin } from "../bundlerPlugins";
128
128
  import { getServerCombinedModueFile } from "../../../analyze/utils";
129
129
  import { isHtmlEnabled } from "./adapterHtml";
@@ -144,12 +144,17 @@ var builderPluginAdapterSSR = function(options) {
144
144
  });
145
145
  api.modifyBundlerChain(function() {
146
146
  var _ref = _asyncToGenerator(function(chain, param) {
147
- var target, CHAIN_ID, isProd, HtmlBundlerPlugin, isServer, builderConfig;
147
+ var target, CHAIN_ID, isProd, HtmlBundlerPlugin, isServer, builderConfig, normalizedConfig2;
148
148
  return __generator(this, function(_state) {
149
149
  switch(_state.label){
150
150
  case 0:
151
151
  target = param.target, CHAIN_ID = param.CHAIN_ID, isProd = param.isProd, HtmlBundlerPlugin = param.HtmlPlugin, isServer = param.isServer;
152
152
  builderConfig = api.getNormalizedConfig();
153
+ normalizedConfig2 = options.normalizedConfig;
154
+ if (!isSSR(normalizedConfig2)) return [
155
+ 3,
156
+ 2
157
+ ];
153
158
  applyRouterPlugin(chain, options);
154
159
  return [
155
160
  4,
@@ -157,6 +162,8 @@ var builderPluginAdapterSSR = function(options) {
157
162
  ];
158
163
  case 1:
159
164
  _state.sent();
165
+ _state.label = 2;
166
+ case 2:
160
167
  if ([
161
168
  "node",
162
169
  "service-worker"
@@ -164,7 +171,7 @@ var builderPluginAdapterSSR = function(options) {
164
171
  applyFilterEntriesBySSRConfig({
165
172
  isProd: isProd,
166
173
  chain: chain,
167
- appNormalizedConfig: options.normalizedConfig
174
+ appNormalizedConfig: normalizedConfig2
168
175
  });
169
176
  }
170
177
  if (isHtmlEnabled(builderConfig, target)) {
@@ -240,6 +240,9 @@ var RouterPlugin = /*#__PURE__*/ function() {
240
240
  switch(_state.label){
241
241
  case 0:
242
242
  stats = compilation.getStats().toJson({
243
+ all: false,
244
+ publicPath: true,
245
+ assets: true,
243
246
  chunkGroups: true,
244
247
  chunks: true
245
248
  });
@@ -81,6 +81,7 @@ const generateCode = async (appContext, config, entrypoints, api) => {
81
81
  const getRoutes = isV5 ? getClientRoutesLegacy : getClientRoutes;
82
82
  await Promise.all(entrypoints.map(generateEntryCode));
83
83
  async function generateEntryCode(entrypoint) {
84
+ var _a;
84
85
  const { entryName, isAutoMount, customBootstrap, fileSystemRoutes } = entrypoint;
85
86
  if (isAutoMount) {
86
87
  if (fileSystemRoutes) {
@@ -143,7 +144,8 @@ const generateCode = async (appContext, config, entrypoints, api) => {
143
144
  ssrMode: useSSG ? "string" : mode,
144
145
  nestedRoutesEntry: entrypoint.nestedRoutesEntry,
145
146
  entryName: entrypoint.entryName,
146
- internalDirectory
147
+ internalDirectory,
148
+ splitRouteChunks: (_a = config2 == null ? void 0 : config2.output) == null ? void 0 : _a.splitRouteChunks
147
149
  })
148
150
  });
149
151
  if (entrypoint.nestedRoutesEntry && isUseSSRBundle(config2)) {
@@ -227,6 +227,14 @@ var analyze_default = ({
227
227
  imports
228
228
  };
229
229
  },
230
+ validateSchema() {
231
+ return {
232
+ target: "output.splitRouteChunks",
233
+ schema: {
234
+ type: "boolean"
235
+ }
236
+ };
237
+ },
230
238
  async fileChange(e) {
231
239
  const appContext = api.useAppContext();
232
240
  const { appDirectory } = appContext;
@@ -76,7 +76,6 @@ const html = (partials) => `
76
76
  </head>
77
77
 
78
78
  <body>
79
- <!--<?- chunksMap.css ?>-->
80
79
  <noscript>
81
80
  We're sorry but react app doesn't work properly without JavaScript enabled. Please enable it to continue.
82
81
  </noscript>
@@ -140,13 +139,16 @@ const routesForServer = ({
140
139
  ${routesCode}
141
140
  `;
142
141
  };
142
+ const createMatchReg = (keyword) => new RegExp(`("${keyword}":\\s)"([^,]+)"`, "g");
143
143
  const fileSystemRoutes = async ({
144
144
  routes,
145
145
  ssrMode,
146
146
  nestedRoutesEntry,
147
147
  entryName,
148
- internalDirectory
148
+ internalDirectory,
149
+ splitRouteChunks = true
149
150
  }) => {
151
+ const components = [];
150
152
  const loadings = [];
151
153
  const errors = [];
152
154
  const loaders = [];
@@ -205,20 +207,30 @@ const fileSystemRoutes = async ({
205
207
  };
206
208
  }
207
209
  if (route._component) {
208
- if (route.isRoot) {
209
- rootLayoutCode = `import RootLayout from '${route._component}'`;
210
- component = `RootLayout`;
211
- } else if (ssrMode === "string") {
212
- lazyImport = `() => import(/* webpackChunkName: "${route.id}" */ '${route._component}')`;
213
- component = `loadable(${lazyImport})`;
210
+ if (splitRouteChunks) {
211
+ if (route.isRoot) {
212
+ rootLayoutCode = `import RootLayout from '${route._component}'`;
213
+ component = `RootLayout`;
214
+ } else if (ssrMode === "string") {
215
+ lazyImport = `() => import(/* webpackChunkName: "${route.id}" */ '${route._component}')`;
216
+ component = `loadable(${lazyImport})`;
217
+ } else {
218
+ lazyImport = `() => import(/* webpackChunkName: "${route.id}" */ '${route._component}')`;
219
+ component = `lazy(${lazyImport})`;
220
+ }
214
221
  } else {
215
- lazyImport = `() => import(/* webpackChunkName: "${route.id}" */ '${route._component}')`;
216
- component = `lazy(${lazyImport})`;
222
+ components.push(route._component);
223
+ component = `component_${components.length - 1}`;
217
224
  }
218
225
  }
219
226
  } else if (route._component) {
220
- lazyImport = `() => import('${route._component}')`;
221
- component = `loadable(${lazyImport})`;
227
+ if (splitRouteChunks) {
228
+ lazyImport = `() => import('${route._component}')`;
229
+ component = `loadable(${lazyImport})`;
230
+ } else {
231
+ components.push(route._component);
232
+ component = `component_${components.length - 1}`;
233
+ }
222
234
  }
223
235
  const finalRoute = {
224
236
  ...route,
@@ -239,20 +251,38 @@ const fileSystemRoutes = async ({
239
251
  for (const route of routes) {
240
252
  if ("type" in route) {
241
253
  const newRoute = traverseRouteTree(route);
242
- routeComponentsCode += `${JSON.stringify(newRoute, null, 2).replace(/"(loadable.*\))"/g, "$1").replace(/"(loadableLazy.*\))"/g, "$1").replace(/"(\(\)[^,]+)",/g, "$1,").replace(/"(lazy\(.*\))"/g, "$1").replace(/"(loading_[^"]+)"/g, "$1").replace(/"(loader_[^"]+)"/g, "$1").replace(/"(RootLayout)"/g, "$1").replace(/"(error_[^"]+)"/g, "$1").replace(/\\"/g, '"')},`;
254
+ const routeStr = JSON.stringify(newRoute, null, 2);
255
+ const keywords = [
256
+ "component",
257
+ "lazyImport",
258
+ "loader",
259
+ "loading",
260
+ "error"
261
+ ];
262
+ const regs = keywords.map(createMatchReg);
263
+ const newRouteStr = regs.reduce((acc, reg) => acc.replace(reg, "$1$2"), routeStr).replace(/"(RootLayout)"/g, "$1").replace(/\\"/g, '"');
264
+ routeComponentsCode += `${newRouteStr},`;
243
265
  } else {
244
266
  const component = `loadable(() => import('${route._component}'))`;
245
267
  const finalRoute = {
246
268
  ...route,
247
269
  component
248
270
  };
249
- routeComponentsCode += `${JSON.stringify(finalRoute, null, 2).replace(/"(loadable[^"]*)"/g, "$1").replace(/"(lazy[^"]*)"/g, "$1")},`;
271
+ const keywords = ["component", "lazyImport"];
272
+ const routeStr = JSON.stringify(finalRoute, null, 2);
273
+ const regs = keywords.map(createMatchReg);
274
+ const newRouteStr = regs.reduce((acc, reg) => acc.replace(reg, "$1$2"), routeStr).replace(/\\"/g, '"');
275
+ routeComponentsCode += `${newRouteStr},`;
250
276
  }
251
277
  }
252
278
  routeComponentsCode += `
253
279
  ];`;
254
280
  const importLoadingCode = loadings.map((loading, index2) => {
255
281
  return `import loading_${index2} from '${loading}';
282
+ `;
283
+ }).join("");
284
+ const importComponentsCode = components.map((component, index2) => {
285
+ return `import component_${index2} from '${component}';
256
286
  `;
257
287
  }).join("");
258
288
  const importErrorComponentsCode = errors.map((error, index2) => {
@@ -277,6 +307,7 @@ const fileSystemRoutes = async ({
277
307
  await fs.writeJSON(loadersMapFile, loadersMap);
278
308
  return `
279
309
  ${importLazyCode}
310
+ ${importComponentsCode}
280
311
  ${rootLayoutCode}
281
312
  ${importLoadingCode}
282
313
  ${importErrorComponentsCode}
@@ -1,7 +1,18 @@
1
1
  import { builderRspackProvider } from "@modern-js/builder-rspack-provider";
2
2
  import { generateBuilder } from "../generator";
3
3
  function createRspackBuilderForModern(options) {
4
- return generateBuilder(options, builderRspackProvider);
4
+ return generateBuilder(options, builderRspackProvider, {
5
+ async modifyBuilderInstance(builder) {
6
+ applyBuilderPlugins(builder, options);
7
+ }
8
+ });
9
+ }
10
+ async function applyBuilderPlugins(builder, options) {
11
+ const { normalizedConfig } = options;
12
+ if (!normalizedConfig.output.disableNodePolyfill) {
13
+ const { builderPluginNodePolyfill } = await import("@modern-js/builder-plugin-node-polyfill");
14
+ builder.addPlugins([builderPluginNodePolyfill()]);
15
+ }
5
16
  }
6
17
  export {
7
18
  createRspackBuilderForModern
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  mergeBuilderConfig
3
3
  } from "@modern-js/builder-shared";
4
- import { fs } from "@modern-js/utils";
4
+ import { isSSR, fs } from "@modern-js/utils";
5
5
  import { HtmlAsyncChunkPlugin, RouterPlugin } from "../bundlerPlugins";
6
6
  import { getServerCombinedModueFile } from "../../../analyze/utils";
7
7
  import { isHtmlEnabled } from "./adapterHtml";
@@ -22,13 +22,16 @@ const builderPluginAdapterSSR = (options) => ({
22
22
  api.modifyBundlerChain(
23
23
  async (chain, { target, CHAIN_ID, isProd, HtmlPlugin: HtmlBundlerPlugin, isServer }) => {
24
24
  const builderConfig = api.getNormalizedConfig();
25
- applyRouterPlugin(chain, options);
26
- await applySSRLoaderEntry(chain, options, isServer);
25
+ const { normalizedConfig: normalizedConfig2 } = options;
26
+ if (isSSR(normalizedConfig2)) {
27
+ applyRouterPlugin(chain, options);
28
+ await applySSRLoaderEntry(chain, options, isServer);
29
+ }
27
30
  if (["node", "service-worker"].includes(target)) {
28
31
  applyFilterEntriesBySSRConfig({
29
32
  isProd,
30
33
  chain,
31
- appNormalizedConfig: options.normalizedConfig
34
+ appNormalizedConfig: normalizedConfig2
32
35
  });
33
36
  }
34
37
  if (isHtmlEnabled(builderConfig, target)) {
@@ -35,6 +35,9 @@ class RouterPlugin {
35
35
  },
36
36
  async () => {
37
37
  const stats = compilation.getStats().toJson({
38
+ all: false,
39
+ publicPath: true,
40
+ assets: true,
38
41
  chunkGroups: true,
39
42
  chunks: true
40
43
  });
@@ -35,12 +35,14 @@ export declare const fileSystemRoutes: ({
35
35
  ssrMode,
36
36
  nestedRoutesEntry,
37
37
  entryName,
38
- internalDirectory
38
+ internalDirectory,
39
+ splitRouteChunks
39
40
  }: {
40
41
  routes: RouteLegacy[] | (NestedRoute | PageRoute)[];
41
42
  ssrMode?: SSRMode | undefined;
42
43
  nestedRoutesEntry?: string | undefined;
43
44
  entryName: string;
44
45
  internalDirectory: string;
46
+ splitRouteChunks?: boolean | undefined;
45
47
  }) => Promise<string>;
46
48
  export declare function ssrLoaderCombinedModule(entrypoints: Entrypoint[], entrypoint: Entrypoint, config: AppNormalizedConfig<'shared'>, appContext: IAppContext): string | null;
@@ -1,2 +1,3 @@
1
+ import { BuilderInstance } from '@modern-js/builder-shared';
1
2
  import { BuilderOptions } from '../shared';
2
- export declare function createRspackBuilderForModern(options: BuilderOptions<'rspack'>): Promise<import("@modern-js/builder-shared").BuilderInstance<import("@modern-js/builder-shared").BuilderProvider<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>>;
3
+ export declare function createRspackBuilderForModern(options: BuilderOptions<'rspack'>): Promise<BuilderInstance<import("@modern-js/builder-shared").BuilderProvider<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>>;
@@ -7,6 +7,7 @@ export type BuilderOutputConfig = UnwrapBuilderConfig<BuilderConfig, 'output'>;
7
7
  export type RsBuilderOutputConfig = UnwrapBuilderConfig<RsBuilderConfig, 'output'>;
8
8
  export interface SharedOutputConfig extends BuilderSharedOutputConfig {
9
9
  ssg?: SSGConfig;
10
+ splitRouteChunks?: boolean;
10
11
  disableNodePolyfill?: boolean;
11
12
  }
12
13
  export interface OutputUserConfig extends BuilderOutputConfig, SharedOutputConfig {}
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.8.1-alpha.3",
14
+ "version": "2.10.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/cjs/index.js",
@@ -22,18 +22,22 @@
22
22
  "import": "./dist/esm/index.js",
23
23
  "require": "./dist/cjs/index.js"
24
24
  },
25
+ "types": "./dist/types/index.d.ts",
25
26
  "default": "./dist/cjs/index.js"
26
27
  },
27
28
  "./cli": {
28
29
  "jsnext:source": "./src/index.ts",
30
+ "types": "./dist/types/index.d.ts",
29
31
  "default": "./dist/cjs/index.js"
30
32
  },
31
33
  "./types": {
32
34
  "jsnext:source": "./lib/types.d.ts",
35
+ "types": "./lib/types.d.ts",
33
36
  "default": "./lib/types.d.ts"
34
37
  },
35
38
  "./server": {
36
39
  "jsnext:source": "./src/exports/server.ts",
40
+ "types": "./dist/types/exports/server.d.ts",
37
41
  "default": "./dist/cjs/exports/server.js"
38
42
  }
39
43
  },
@@ -64,39 +68,39 @@
64
68
  "@babel/types": "^7.18.0",
65
69
  "es-module-lexer": "^1.1.0",
66
70
  "esbuild": "0.15.7",
67
- "@modern-js/builder": "2.8.0",
68
- "@modern-js/builder-plugin-esbuild": "2.8.0",
69
- "@modern-js/builder-plugin-node-polyfill": "2.8.0",
70
- "@modern-js/builder-shared": "2.8.0",
71
- "@modern-js/builder-webpack-provider": "2.8.0",
72
- "@modern-js/core": "2.8.0",
73
- "@modern-js/new-action": "2.8.0",
74
- "@modern-js/node-bundle-require": "2.8.0",
75
- "@modern-js/plugin": "2.8.0",
76
- "@modern-js/plugin-i18n": "2.8.0",
77
- "@modern-js/plugin-lint": "2.8.0",
78
- "@modern-js/prod-server": "2.8.0",
79
- "@modern-js/server": "2.8.0",
80
- "@modern-js/upgrade": "2.8.0",
81
- "@modern-js/utils": "2.8.0",
82
- "@modern-js/types": "2.8.0",
83
- "@modern-js/plugin-data-loader": "2.8.0"
71
+ "@modern-js/builder": "2.10.0",
72
+ "@modern-js/builder-plugin-esbuild": "2.10.0",
73
+ "@modern-js/builder-plugin-node-polyfill": "2.10.0",
74
+ "@modern-js/builder-shared": "2.10.0",
75
+ "@modern-js/builder-webpack-provider": "2.10.0",
76
+ "@modern-js/core": "2.10.0",
77
+ "@modern-js/new-action": "2.10.0",
78
+ "@modern-js/node-bundle-require": "2.10.0",
79
+ "@modern-js/plugin": "2.10.0",
80
+ "@modern-js/plugin-data-loader": "2.10.0",
81
+ "@modern-js/plugin-i18n": "2.10.0",
82
+ "@modern-js/plugin-lint": "2.10.0",
83
+ "@modern-js/prod-server": "2.10.0",
84
+ "@modern-js/server": "2.10.0",
85
+ "@modern-js/types": "2.10.0",
86
+ "@modern-js/upgrade": "2.10.0",
87
+ "@modern-js/utils": "2.10.0"
84
88
  },
85
89
  "devDependencies": {
86
90
  "@types/babel__traverse": "^7.14.2",
87
- "@types/jest": "^27",
91
+ "@types/jest": "^29",
88
92
  "@types/node": "^14",
89
- "jest": "^27",
93
+ "jest": "^29",
90
94
  "typescript": "^4",
91
- "webpack": "^5.75.0",
92
- "@modern-js/builder-rspack-provider": "2.8.0",
93
- "@modern-js/builder-plugin-swc": "2.8.0",
94
- "@scripts/build": "2.8.0",
95
- "@scripts/jest-config": "2.8.0",
96
- "@modern-js/server-core": "2.8.0"
95
+ "webpack": "^5.76.2",
96
+ "@modern-js/builder-plugin-swc": "2.10.0",
97
+ "@modern-js/builder-rspack-provider": "2.10.0",
98
+ "@modern-js/server-core": "2.10.0",
99
+ "@scripts/build": "2.10.0",
100
+ "@scripts/jest-config": "2.10.0"
97
101
  },
98
102
  "peerDependencies": {
99
- "@modern-js/builder-rspack-provider": "^2.8.0"
103
+ "@modern-js/builder-rspack-provider": "^2.10.0"
100
104
  },
101
105
  "peerDependenciesMeta": {
102
106
  "@modern-js/builder-rspack-provider": {
@@ -1,56 +0,0 @@
1
- const JS_EXTENSIONS = [".js", ".ts", ".jsx", ".tsx"];
2
- const INDEX_FILE_NAME = "index";
3
- const APP_FILE_NAME = "App";
4
- const PAGES_DIR_NAME = "pages";
5
- const NESTED_ROUTES_DIR = "routes";
6
- const FILE_SYSTEM_ROUTES_FILE_NAME = "routes.js";
7
- const LOADER_EXPORT_NAME = "loader";
8
- const TEMP_LOADERS_DIR = "__loaders__";
9
- const ENTRY_POINT_FILE_NAME = "index.js";
10
- const ENTRY_BOOTSTRAP_FILE_NAME = "bootstrap.js";
11
- const FILE_SYSTEM_ROUTES_DYNAMIC_REGEXP = /^\[(\S+)\]([*+?]?)$/;
12
- const FILE_SYSTEM_ROUTES_LAYOUT = "_layout";
13
- const FILE_SYSTEM_ROUTES_GLOBAL_LAYOUT = "_app";
14
- const FILE_SYSTEM_ROUTES_INDEX = "index";
15
- const FILE_SYSTEM_ROUTES_IGNORED_REGEX = /\.(d|test|spec|e2e)\.(js|jsx|ts|tsx)$/;
16
- const HTML_PARTIALS_FOLDER = "html";
17
- const HTML_PARTIALS_EXTENSIONS = [".htm", ".html", ".ejs"];
18
- const FILE_SYSTEM_ROUTES_COMPONENTS_DIR = "internal_components";
19
- const NESTED_ROUTE = {
20
- LAYOUT_FILE: "layout",
21
- LAYOUT_LOADER_FILE: "layout.loader",
22
- PAGE_FILE: "page",
23
- PAGE_LOADER_FILE: "page.loader",
24
- LOADING_FILE: "loading",
25
- ERROR_FILE: "error",
26
- LOADER_FILE: "loader",
27
- SPLATE_FILE: "$",
28
- SPLATE_LOADER_FILE: "$.loader"
29
- };
30
- const APP_CONFIG_NAME = "config";
31
- const APP_INIT_EXPORTED = "init";
32
- const APP_INIT_IMPORTED = "appInit";
33
- export {
34
- APP_CONFIG_NAME,
35
- APP_FILE_NAME,
36
- APP_INIT_EXPORTED,
37
- APP_INIT_IMPORTED,
38
- ENTRY_BOOTSTRAP_FILE_NAME,
39
- ENTRY_POINT_FILE_NAME,
40
- FILE_SYSTEM_ROUTES_COMPONENTS_DIR,
41
- FILE_SYSTEM_ROUTES_DYNAMIC_REGEXP,
42
- FILE_SYSTEM_ROUTES_FILE_NAME,
43
- FILE_SYSTEM_ROUTES_GLOBAL_LAYOUT,
44
- FILE_SYSTEM_ROUTES_IGNORED_REGEX,
45
- FILE_SYSTEM_ROUTES_INDEX,
46
- FILE_SYSTEM_ROUTES_LAYOUT,
47
- HTML_PARTIALS_EXTENSIONS,
48
- HTML_PARTIALS_FOLDER,
49
- INDEX_FILE_NAME,
50
- JS_EXTENSIONS,
51
- LOADER_EXPORT_NAME,
52
- NESTED_ROUTE,
53
- NESTED_ROUTES_DIR,
54
- PAGES_DIR_NAME,
55
- TEMP_LOADERS_DIR
56
- };