@shuvi/platform-web 1.0.10 → 1.0.12
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.
|
@@ -78,13 +78,7 @@ const getPlugin = (platformContext) => {
|
|
|
78
78
|
}
|
|
79
79
|
else if (isServer) {
|
|
80
80
|
if (!ctx.config.ssr) {
|
|
81
|
-
chain.
|
|
82
|
-
.rule('spa-ignore')
|
|
83
|
-
.test(/\.shuvi\/app\/user\/app\.js/)
|
|
84
|
-
.use('empty-loader')
|
|
85
|
-
.loader('@shuvi/empty-loader')
|
|
86
|
-
.end()
|
|
87
|
-
.pre();
|
|
81
|
+
chain.resolve.alias.set('@shuvi/platform-shared/shuvi-app/application$', '@shuvi/platform-shared/shuvi-app/application.bare');
|
|
88
82
|
}
|
|
89
83
|
chain.plugin('private/build-manifest').use(build_manifest_plugin_1.default, [
|
|
90
84
|
{
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ShuviRequestHandler, ServerPluginConstructor as _ServerPluginConstructor } from '@shuvi/service';
|
|
2
2
|
import { IApiRequestHandler } from '../shared';
|
|
3
3
|
import { extendedHooks } from './features/html-render/serverHooks';
|
|
4
|
+
import type { IHtmlDocument } from './features/html-render/lib/renderer/types';
|
|
4
5
|
declare global {
|
|
5
6
|
namespace ShuviService {
|
|
6
7
|
interface CustomServerPluginHooks {
|
|
@@ -19,6 +20,8 @@ export declare type ShuviApiHandler = IApiRequestHandler;
|
|
|
19
20
|
export declare type GetPageDataFunction = RemoveLast<ServerPluginConstructor['getPageData']>;
|
|
20
21
|
export declare type HandlePageRequestFunction = RemoveLast<ServerPluginConstructor['handlePageRequest']>;
|
|
21
22
|
export declare type ModifyHtmlFunction = RemoveLast<ServerPluginConstructor['modifyHtml']>;
|
|
23
|
+
/** indirect type of ModifyHtmlFunction */
|
|
24
|
+
export type { IHtmlDocument };
|
|
22
25
|
export declare type SendHtmlFunction = RemoveLast<ServerPluginConstructor['sendHtml']>;
|
|
23
26
|
export interface IServerModule {
|
|
24
27
|
getPageData?: GetPageDataFunction;
|
|
@@ -26,4 +29,3 @@ export interface IServerModule {
|
|
|
26
29
|
modifyHtml?: ModifyHtmlFunction;
|
|
27
30
|
sendHtml?: SendHtmlFunction;
|
|
28
31
|
}
|
|
29
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shuvi/platform-web",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/shuvijs/shuvi.git",
|
|
@@ -72,17 +72,17 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@next/react-refresh-utils": "12.1.6",
|
|
75
|
-
"@shuvi/error-overlay": "1.0.
|
|
76
|
-
"@shuvi/hook": "1.0.
|
|
77
|
-
"@shuvi/platform-shared": "1.0.
|
|
75
|
+
"@shuvi/error-overlay": "1.0.12",
|
|
76
|
+
"@shuvi/hook": "1.0.12",
|
|
77
|
+
"@shuvi/platform-shared": "1.0.12",
|
|
78
78
|
"doura": "0.0.7",
|
|
79
79
|
"react-doura": "0.0.7",
|
|
80
|
-
"@shuvi/router": "1.0.
|
|
81
|
-
"@shuvi/router-react": "1.0.
|
|
82
|
-
"@shuvi/runtime": "1.0.
|
|
83
|
-
"@shuvi/shared": "1.0.
|
|
84
|
-
"@shuvi/toolpack": "1.0.
|
|
85
|
-
"@shuvi/utils": "1.0.
|
|
80
|
+
"@shuvi/router": "1.0.12",
|
|
81
|
+
"@shuvi/router-react": "1.0.12",
|
|
82
|
+
"@shuvi/runtime": "1.0.12",
|
|
83
|
+
"@shuvi/shared": "1.0.12",
|
|
84
|
+
"@shuvi/toolpack": "1.0.12",
|
|
85
|
+
"@shuvi/utils": "1.0.12",
|
|
86
86
|
"content-type": "1.0.4",
|
|
87
87
|
"core-js": "3.6.5",
|
|
88
88
|
"ejs": "3.1.5",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"whatwg-fetch": "3.0.0"
|
|
99
99
|
},
|
|
100
100
|
"peerDependencies": {
|
|
101
|
-
"@shuvi/service": "1.0.
|
|
101
|
+
"@shuvi/service": "1.0.12"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
104
|
"@shuvi/service": "workspace:*",
|