@flatjs/evolve 2.3.2-next.4 → 3.0.0-next.6

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 (91) hide show
  1. package/dist/build-server/base-compiler-watching.js +1 -1
  2. package/dist/build-server/compiler-server-manager.js +1 -1
  3. package/dist/build-server/compiler-server.js +1 -1
  4. package/dist/build-server/create-global-compiler-watching.js +1 -1
  5. package/dist/compiler/create-build-server-global-compiler.js +1 -1
  6. package/dist/constants.d.ts +2 -1
  7. package/dist/constants.js +1 -1
  8. package/dist/core/rspack/dev-serve/add-rspack-compiler-to-dev-server.js +1 -1
  9. package/dist/core/rspack/dev-serve/create-rspack-compiler-task.js +1 -1
  10. package/dist/core/rspack/load-rspack-watch-options.js +1 -1
  11. package/dist/core/rspack/start-rspack-build.js +1 -1
  12. package/dist/core/webpack/dev-serve/add-webpack-compiler-to-dev-server.js +1 -1
  13. package/dist/core/webpack/dev-serve/create-webpack-compiler-task.js +1 -1
  14. package/dist/core/webpack/load-watch-options.js +1 -1
  15. package/dist/core/webpack/start-webpack-build.js +1 -1
  16. package/dist/default-options.js +1 -1
  17. package/dist/dev-server/create-dev-server.js +1 -1
  18. package/dist/dev-server/middlewares/create-page-middleware.js +1 -1
  19. package/dist/dev-server/middlewares/create-public-assets-middleware.js +1 -1
  20. package/dist/dev-server/middlewares/error-module-parser.d.ts +12 -0
  21. package/dist/dev-server/middlewares/error-module-parser.js +1 -0
  22. package/dist/dev-server/middlewares/get-page-main-html.js +1 -1
  23. package/dist/dev-server/middlewares/get-page-module-html.js +1 -1
  24. package/dist/dev-server/middlewares/main-module-parser.d.ts +15 -0
  25. package/dist/dev-server/middlewares/main-module-parser.js +1 -0
  26. package/dist/helpers/assert-group-entry-item.js +1 -1
  27. package/dist/helpers/chunk-entry-map.js +1 -1
  28. package/dist/helpers/custom-listr-renderer.js +1 -1
  29. package/dist/helpers/custom-message-channel.js +1 -1
  30. package/dist/helpers/delete-object-keys.js +1 -1
  31. package/dist/helpers/filter-actived-entries.js +1 -1
  32. package/dist/helpers/flat-entry-map.js +1 -1
  33. package/dist/helpers/format-spinner-text.js +1 -1
  34. package/dist/helpers/get-html-plugin-config.js +1 -1
  35. package/dist/helpers/is-deep-equal.js +1 -1
  36. package/dist/helpers/is-vue-entry-item.js +1 -1
  37. package/dist/helpers/json-serializer.js +1 -1
  38. package/dist/helpers/merge-babel-options.js +1 -1
  39. package/dist/helpers/merge-inspector-evolve-config.js +1 -1
  40. package/dist/helpers/normalize-group-name.js +1 -1
  41. package/dist/helpers/normalize-template-inject-tokens.d.ts +8 -5
  42. package/dist/helpers/normalize-template-inject-tokens.js +1 -1
  43. package/dist/helpers/resolve-entry-map-input-files.js +1 -1
  44. package/dist/helpers/split-to-entry-group.js +1 -1
  45. package/dist/helpers/verify-group-entry-options.js +1 -1
  46. package/dist/main/prepare-analyzer.js +1 -1
  47. package/dist/main/prepare-serve.js +1 -1
  48. package/dist/main/start-build-dynamic.js +1 -1
  49. package/dist/main/start-build-worker.js +1 -1
  50. package/dist/minimizer/rspack/image-minimizer.js +1 -1
  51. package/dist/minimizer/webpack/image-minimizer.js +1 -1
  52. package/dist/plugins/rspack/module-federation/external-template-remotes-rspack-plugin.js +1 -1
  53. package/dist/plugins/rspack/module-federation/index.js +1 -1
  54. package/dist/plugins/rspack/multi-html/multi-html-cdn-rspack-plugin.js +1 -1
  55. package/dist/plugins/rspack/multi-html/multi-html-modify-rspack-plugin.js +1 -0
  56. package/dist/plugins/rspack/multi-html/multi-html-rspack-plugin.js +1 -1
  57. package/dist/plugins/rspack/progress-plugin/index.js +1 -1
  58. package/dist/plugins/rspack/progress-plugin/progress-handler.js +1 -1
  59. package/dist/plugins/rspack/progress-plugin/progress-worker.js +1 -1
  60. package/dist/plugins/webpack/circular-dependency/circular-dependency-webpack-plugin.js +1 -1
  61. package/dist/plugins/webpack/clean-webpack/clean-webpack-plugin.js +1 -1
  62. package/dist/plugins/webpack/clean-webpack/index.js +1 -1
  63. package/dist/plugins/webpack/html-inject-scripts/html-inject-script-webpack-plugin.js +1 -1
  64. package/dist/plugins/webpack/html-inject-scripts/html-inline-script-webpack-plugin.js +1 -1
  65. package/dist/plugins/webpack/module-federation/external-template-remotes-webpack-plugin.js +1 -1
  66. package/dist/plugins/webpack/module-federation/index.js +1 -1
  67. package/dist/plugins/webpack/multi-html/multi-html-cdn-webpack-plugin.js +1 -1
  68. package/dist/plugins/webpack/multi-html/multi-html-modify-webpack-plugin.js +1 -1
  69. package/dist/plugins/webpack/multi-html/multi-html-webpack-plugins.js +1 -1
  70. package/dist/plugins/webpack/stats-webpack/helper-write-stats.js +1 -1
  71. package/dist/plugins/webpack/stats-webpack/stats-webpack-plugin.js +1 -1
  72. package/dist/rules/rule-utils.js +1 -1
  73. package/dist/types/types-entry-map.d.ts +0 -7
  74. package/dist/types/types-multi-html.d.ts +30 -28
  75. package/dist/types/types-webpack.d.ts +4 -8
  76. package/package.json +34 -36
  77. package/templates/html-plugin/index-dev.html +11 -48
  78. package/templates/html-plugin/index-inte.html +11 -48
  79. package/templates/html-plugin/index-inte2.html +11 -48
  80. package/templates/html-plugin/index-inte3.html +11 -48
  81. package/templates/html-plugin/index-inte4.html +11 -48
  82. package/templates/html-plugin/index-me.html +11 -48
  83. package/templates/html-plugin/index-ntv.html +11 -48
  84. package/templates/html-plugin/index-prod.html +11 -48
  85. package/templates/html-plugin/index-rc.html +11 -48
  86. package/templates/html-plugin/index-uat.html +11 -48
  87. package/templates/main.html +11 -28
  88. package/templates/module-404.html +11 -22
  89. package/templates/module.html +11 -69
  90. package/dist/plugins/rspack/multi-html/multi-html-modify--rspack-plugin.js +0 -1
  91. /package/dist/plugins/rspack/multi-html/{multi-html-modify--rspack-plugin.d.ts → multi-html-modify-rspack-plugin.d.ts} +0 -0
@@ -1,21 +1,20 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
5
- <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
6
- <meta http-equiv="Expires" content="0" />
7
- <meta http-equiv="Pragma" content="no-cache" />
8
- <meta http-equiv="Cache-control" content="no-cache" />
9
- <meta http-equiv="Cache" content="no-cache" />
10
- <meta name="format-detection" content="telephone=no,email=no" />
11
- <meta name="mobile-web-app-capable" content="yes" />
12
- <meta name="apple-touch-fullscreen" content="yes" />
13
- <meta name="apple-mobile-web-app-status-bar-style" content="black" />
4
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
5
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
6
+ <meta http-equiv="Expires" content="0">
7
+ <meta http-equiv="Pragma" content="no-cache">
8
+ <meta http-equiv="Cache-control" content="no-cache">
9
+ <meta http-equiv="Cache" content="no-cache">
10
+ <meta name="format-detection" content="telephone=no,email=no">
11
+ <meta name="mobile-web-app-capable" content="yes">
12
+ <meta name="apple-touch-fullscreen" content="yes">
13
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
14
14
  <meta
15
15
  name="viewport"
16
16
  content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, viewport-fit=cover"
17
- />
18
- <title><%= title %></title>
17
+ >
19
18
  <style>
20
19
  ul {
21
20
  padding: 0;
@@ -29,15 +28,5 @@
29
28
  </head>
30
29
 
31
30
  <body>
32
- <div class="container">
33
- <ul>
34
- <% _.forEach(errorMeta, function (error) { %>
35
- <li>
36
- <span class="name"> <%= error.name %>: </span>
37
- <span class="value"> <%= error.value %> </span>
38
- </li>
39
- <% }) %>
40
- </ul>
41
- </div>
42
31
  </body>
43
32
  </html>
@@ -1,81 +1,23 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
- <meta charset="utf-8" />
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
6
- <meta http-equiv="Expires" content="0" />
7
- <meta http-equiv="Pragma" content="no-cache" />
8
- <meta http-equiv="Cache-control" content="no-cache" />
9
- <meta http-equiv="Cache" content="no-cache" />
10
- <meta name="format-detection" content="telephone=no,email=no" />
11
- <meta name="mobile-web-app-capable" content="yes" />
12
- <meta name="apple-touch-fullscreen" content="yes" />
13
- <meta name="apple-mobile-web-app-status-bar-style" content="black" />
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6
+ <meta http-equiv="Expires" content="0">
7
+ <meta http-equiv="Pragma" content="no-cache">
8
+ <meta http-equiv="Cache-control" content="no-cache">
9
+ <meta http-equiv="Cache" content="no-cache">
10
+ <meta name="format-detection" content="telephone=no,email=no">
11
+ <meta name="mobile-web-app-capable" content="yes">
12
+ <meta name="apple-touch-fullscreen" content="yes">
13
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
14
14
  <meta
15
15
  name="viewport"
16
16
  content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, viewport-fit=cover"
17
- />
18
-
19
- <title><%= title %></title>
20
-
21
- <% if (headBeforeHtmlTags) { %>
22
- <% for (let index = 0; index < headBeforeHtmlTags.length; index++) { %>
23
- <%= headBeforeHtmlTags[index] %> <%
24
- } %>
25
- <% } %>
26
- <% if (inlineScripts) { %>
27
- <script>
28
- <% for (let index = 0; index < inlineScripts.length; index++) { %>
29
- <%= inlineScripts[index] %>
30
- <% } %>
31
- </script>
32
- <% } %>
33
- <% if (viewport) { %>
34
- <script>
35
- <%= viewport %>
36
- </script>
37
- <% } %>
38
- <% if (favicon) { %>
39
- <link rel="icon" type="image/png" sizes="32x32" href="<%= favicon %>" />
40
- <% } %>
41
- <% if (headBeforeStyles) { %>
42
- <% for (let index = 0; index < headBeforeStyles.length; index++) { %>
43
- <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
44
- <% } %>
45
- <% } %>
46
- <% if (styles.length) { %>
47
- <% _.forEach(styles, (css)=> { %>
48
- <link href="<%= css %>" rel="stylesheet" />
49
- <% }) %>
50
- <% } %>
51
-
52
- <script>
53
- window.GLOBAL = <%= JSON.stringify(Object.assign(global, {})) %>;
54
- </script>
55
-
56
- <% if (headBeforeScripts) { %>
57
- <% for (let index = 0; index < headBeforeScripts.length; index++) { %>
58
- <script src="<%= headBeforeScripts[index]%>"></script>
59
- <% } %>
60
- <% } %>
17
+ >
61
18
  </head>
62
19
 
63
20
  <body>
64
21
  <div id="app"></div>
65
- <% if (moduleFederationScripts.length) { %>
66
- <script>
67
- <%= moduleFederationScripts %>
68
- </script>
69
- <% } %>
70
- <% if (scripts.length) { %>
71
- <% _.forEach(scripts, (js)=> { %>
72
- <script src="<%= js %>"></script>
73
- <% }) %>
74
- <% } %>
75
- <% if (bodyAfterScripts) { %>
76
- <% for (let index = 0; index < bodyAfterScripts.length; index++) { %>
77
- <script src="<%= bodyAfterScripts[index]%>"></script>
78
- <% } %>
79
- <% } %>
80
22
  </body>
81
23
  </html>
@@ -1 +0,0 @@
1
- import HtmlWebpackPlugin from"html-webpack-plugin";import{ensureSlash}from"@flatjs/common";const getCurrentEntryOptions=(t=[],i)=>{const e=t.find((t=>i.includes(ensureSlash(t[0],!0))));return e?e[1]?.options:void 0};export class MultiHtmlModifyRspackPlugin{constructor(t){this.pluginName="MultiHtmlModifyRspackPlugin",this.entryMapItemList=t}apply(t){t.hooks.compilation.tap(this.pluginName,(t=>{HtmlWebpackPlugin.getHooks(t).beforeEmit.tapAsync(this.pluginName,((t,i)=>{const e=getCurrentEntryOptions(this.entryMapItemList,t.outputName);/<%= title %>/.test(t.html)&&(t.html=t.html.replace(/<%= title %>/g,e?.title||"")),i(null,t)}))}))}}