@modern-js/app-tools 2.29.0 → 2.30.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# @modern-js/app-tools
|
|
2
2
|
|
|
3
|
+
## 2.30.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 276ace3: chore: remove noscript tag in html template
|
|
8
|
+
chore: 移除 HTML 模板中的 noscript 标签
|
|
9
|
+
- c03be09: feat(CLI): print solution name and version to terminal
|
|
10
|
+
|
|
11
|
+
feat(CLI): 在控制台输出 solution 的名称和版本
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [9f21f28]
|
|
14
|
+
- Updated dependencies [a5ee81a]
|
|
15
|
+
- Updated dependencies [883692c]
|
|
16
|
+
- Updated dependencies [cc5f49e]
|
|
17
|
+
- Updated dependencies [f74064c]
|
|
18
|
+
- Updated dependencies [b6ab299]
|
|
19
|
+
- Updated dependencies [0ea763e]
|
|
20
|
+
- Updated dependencies [e6ae836]
|
|
21
|
+
- Updated dependencies [c03be09]
|
|
22
|
+
- Updated dependencies [7cb7b24]
|
|
23
|
+
- Updated dependencies [e94ad94]
|
|
24
|
+
- Updated dependencies [0e0b6e3]
|
|
25
|
+
- @modern-js/prod-server@2.30.0
|
|
26
|
+
- @modern-js/types@2.30.0
|
|
27
|
+
- @modern-js/server-core@2.30.0
|
|
28
|
+
- @modern-js/server@2.30.0
|
|
29
|
+
- @modern-js/builder-webpack-provider@2.30.0
|
|
30
|
+
- @modern-js/builder-shared@2.30.0
|
|
31
|
+
- @modern-js/builder-rspack-provider@2.30.0
|
|
32
|
+
- @modern-js/builder@2.30.0
|
|
33
|
+
- @modern-js/core@2.30.0
|
|
34
|
+
- @modern-js/plugin-data-loader@2.30.0
|
|
35
|
+
- @modern-js/utils@2.30.0
|
|
36
|
+
- @modern-js/builder-plugin-esbuild@2.30.0
|
|
37
|
+
- @modern-js/builder-plugin-node-polyfill@2.30.0
|
|
38
|
+
- @modern-js/plugin-lint@2.30.0
|
|
39
|
+
- @modern-js/plugin-i18n@2.30.0
|
|
40
|
+
- @modern-js/new-action@2.30.0
|
|
41
|
+
- @modern-js/node-bundle-require@2.30.0
|
|
42
|
+
- @modern-js/plugin@2.30.0
|
|
43
|
+
- @modern-js/upgrade@2.30.0
|
|
44
|
+
|
|
3
45
|
## 2.29.0
|
|
4
46
|
|
|
5
47
|
### Patch Changes
|
package/bin/modern.js
CHANGED
|
@@ -94,9 +94,6 @@ const html = (partials) => `
|
|
|
94
94
|
</head>
|
|
95
95
|
|
|
96
96
|
<body>
|
|
97
|
-
<noscript>
|
|
98
|
-
We're sorry but react app doesn't work properly without JavaScript enabled. Please enable it to continue.
|
|
99
|
-
</noscript>
|
|
100
97
|
<div id="<%= mountId %>"><!--<?- html ?>--></div>
|
|
101
98
|
${partials.body.join("\n")}
|
|
102
99
|
<!--<?- chunksMap.js ?>-->
|
|
@@ -20,7 +20,7 @@ export var renderFunction = function(param) {
|
|
|
20
20
|
}).join("\n"), "\n ]\n })(").concat(fileSystemRoutes2 ? "" : "App", ")\n\n\n if(!AppWrapper.init && typeof appInit !== 'undefined') {\n AppWrapper.init = appInit;\n }\n\n\n if (IS_BROWSER) {\n ").concat(customBootstrap ? "customBootstrap(AppWrapper, () => ".concat(bootstrap, ");") : "".concat(bootstrap, ";"), "\n }\n\n return AppWrapper\n");
|
|
21
21
|
};
|
|
22
22
|
export var html = function(partials) {
|
|
23
|
-
return "\n<!DOCTYPE html>\n<html>\n<head>\n <%= meta %>\n <title><%= title %></title>\n\n ".concat(partials.top.join("\n"), "\n\n ").concat(partials.head.join("\n"),
|
|
23
|
+
return "\n<!DOCTYPE html>\n<html>\n<head>\n <%= meta %>\n <title><%= title %></title>\n\n ".concat(partials.top.join("\n"), "\n\n ").concat(partials.head.join("\n"), '\n\n</head>\n\n<body>\n <div id="<%= mountId %>"><!--<?- html ?>--></div>\n ').concat(partials.body.join("\n"), "\n <!--<?- chunksMap.js ?>-->\n <!--<?- SSRDataScript ?>-->\n <!--<?- bottomTemplate ?>-->\n</body>\n\n</html>\n");
|
|
24
24
|
};
|
|
25
25
|
export var routesForServer = function(param) {
|
|
26
26
|
var routes = param.routes;
|
|
@@ -62,9 +62,6 @@ export const html = (partials) => `
|
|
|
62
62
|
</head>
|
|
63
63
|
|
|
64
64
|
<body>
|
|
65
|
-
<noscript>
|
|
66
|
-
We're sorry but react app doesn't work properly without JavaScript enabled. Please enable it to continue.
|
|
67
|
-
</noscript>
|
|
68
65
|
<div id="<%= mountId %>"><!--<?- html ?>--></div>
|
|
69
66
|
${partials.body.join("\n")}
|
|
70
67
|
<!--<?- chunksMap.js ?>-->
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.30.0",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -73,24 +73,24 @@
|
|
|
73
73
|
"esbuild": "0.17.19",
|
|
74
74
|
"rspack-plugin-virtual-module": "0.1.0",
|
|
75
75
|
"@swc/helpers": "0.5.1",
|
|
76
|
-
"@modern-js/builder": "2.
|
|
77
|
-
"@modern-js/builder-plugin-
|
|
78
|
-
"@modern-js/builder-
|
|
79
|
-
"@modern-js/builder-
|
|
80
|
-
"@modern-js/builder-webpack-provider": "2.
|
|
81
|
-
"@modern-js/core": "2.
|
|
82
|
-
"@modern-js/new-action": "2.
|
|
83
|
-
"@modern-js/node-bundle-require": "2.
|
|
84
|
-
"@modern-js/plugin": "2.
|
|
85
|
-
"@modern-js/plugin-data-loader": "2.
|
|
86
|
-
"@modern-js/plugin-
|
|
87
|
-
"@modern-js/plugin-
|
|
88
|
-
"@modern-js/
|
|
89
|
-
"@modern-js/
|
|
90
|
-
"@modern-js/
|
|
91
|
-
"@modern-js/
|
|
92
|
-
"@modern-js/utils": "2.
|
|
93
|
-
"@modern-js/server
|
|
76
|
+
"@modern-js/builder": "2.30.0",
|
|
77
|
+
"@modern-js/builder-plugin-esbuild": "2.30.0",
|
|
78
|
+
"@modern-js/builder-plugin-node-polyfill": "2.30.0",
|
|
79
|
+
"@modern-js/builder-shared": "2.30.0",
|
|
80
|
+
"@modern-js/builder-webpack-provider": "2.30.0",
|
|
81
|
+
"@modern-js/core": "2.30.0",
|
|
82
|
+
"@modern-js/new-action": "2.30.0",
|
|
83
|
+
"@modern-js/node-bundle-require": "2.30.0",
|
|
84
|
+
"@modern-js/plugin": "2.30.0",
|
|
85
|
+
"@modern-js/plugin-data-loader": "2.30.0",
|
|
86
|
+
"@modern-js/plugin-lint": "2.30.0",
|
|
87
|
+
"@modern-js/plugin-i18n": "2.30.0",
|
|
88
|
+
"@modern-js/server": "2.30.0",
|
|
89
|
+
"@modern-js/types": "2.30.0",
|
|
90
|
+
"@modern-js/upgrade": "2.30.0",
|
|
91
|
+
"@modern-js/server-core": "2.30.0",
|
|
92
|
+
"@modern-js/utils": "2.30.0",
|
|
93
|
+
"@modern-js/prod-server": "2.30.0"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
96
|
"@types/babel__traverse": "^7.14.2",
|
|
@@ -99,13 +99,13 @@
|
|
|
99
99
|
"jest": "^29",
|
|
100
100
|
"typescript": "^5",
|
|
101
101
|
"webpack": "^5.88.1",
|
|
102
|
-
"@modern-js/builder-plugin-swc": "2.
|
|
103
|
-
"@modern-js/builder-rspack-provider": "2.
|
|
104
|
-
"@scripts/build": "2.
|
|
105
|
-
"@scripts/jest-config": "2.
|
|
102
|
+
"@modern-js/builder-plugin-swc": "2.30.0",
|
|
103
|
+
"@modern-js/builder-rspack-provider": "2.30.0",
|
|
104
|
+
"@scripts/build": "2.30.0",
|
|
105
|
+
"@scripts/jest-config": "2.30.0"
|
|
106
106
|
},
|
|
107
107
|
"peerDependencies": {
|
|
108
|
-
"@modern-js/builder-rspack-provider": "^2.
|
|
108
|
+
"@modern-js/builder-rspack-provider": "^2.30.0"
|
|
109
109
|
},
|
|
110
110
|
"peerDependenciesMeta": {
|
|
111
111
|
"@modern-js/builder-rspack-provider": {
|