@shuvi/shared 1.0.0-rc.13 → 1.0.0-rc.16
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/esm/constants.d.ts +2 -2
- package/esm/constants.js +3 -7
- package/lib/constants.d.ts +2 -2
- package/lib/constants.js +4 -8
- package/package.json +2 -2
package/esm/constants.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare const SHUVI_ERROR: {
|
|
|
21
21
|
message: string;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
export declare const BUNDLER_DEFAULT_TARGET: string;
|
|
25
24
|
export declare const BUNDLER_TARGET_CLIENT: string;
|
|
26
25
|
export declare const BUNDLER_TARGET_SERVER: string;
|
|
27
|
-
export declare const
|
|
26
|
+
export declare const CLIENT_OUTPUT_DIR = "client";
|
|
27
|
+
export declare const SERVER_OUTPUT_DIR = "server";
|
package/esm/constants.js
CHANGED
|
@@ -23,11 +23,7 @@ export const SHUVI_ERROR = {
|
|
|
23
23
|
message: 'This page could not be found.'
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
|
|
27
|
-
export const BUNDLER_DEFAULT_TARGET = `${NAME}/client`;
|
|
28
|
-
// service has BUNDLER_DEFAULT_TARGET and
|
|
29
|
-
// shuvi inner has used BUNDLER_DEFAULT_TARGET replaced BUNDLER_DEFAULT_TARGET,
|
|
30
|
-
// keep BUNDLER_TARGET_CLIENT for old users plugins, will be remove in future
|
|
31
|
-
export const BUNDLER_TARGET_CLIENT = BUNDLER_DEFAULT_TARGET;
|
|
26
|
+
export const BUNDLER_TARGET_CLIENT = `${NAME}/client`;
|
|
32
27
|
export const BUNDLER_TARGET_SERVER = `${NAME}/server`;
|
|
33
|
-
export const
|
|
28
|
+
export const CLIENT_OUTPUT_DIR = 'client';
|
|
29
|
+
export const SERVER_OUTPUT_DIR = 'server';
|
package/lib/constants.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare const SHUVI_ERROR: {
|
|
|
21
21
|
message: string;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
export declare const BUNDLER_DEFAULT_TARGET: string;
|
|
25
24
|
export declare const BUNDLER_TARGET_CLIENT: string;
|
|
26
25
|
export declare const BUNDLER_TARGET_SERVER: string;
|
|
27
|
-
export declare const
|
|
26
|
+
export declare const CLIENT_OUTPUT_DIR = "client";
|
|
27
|
+
export declare const SERVER_OUTPUT_DIR = "server";
|
package/lib/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SERVER_OUTPUT_DIR = exports.CLIENT_OUTPUT_DIR = exports.BUNDLER_TARGET_SERVER = exports.BUNDLER_TARGET_CLIENT = exports.SHUVI_ERROR = exports.ROUTE_NOT_FOUND_NAME = exports.DEV_SOCKET_TIMEOUT_MS = exports.DEV_ORIGINAL_STACK_FRAME_ENDPOINT = exports.DEV_HOT_LAUNCH_EDITOR_ENDPOINT = exports.DEV_HOT_MIDDLEWARE_PATH = exports.DEV_STYLE_HIDE_FOUC = exports.DEV_STYLE_ANCHOR_ID = exports.CLIENT_APPDATA_ID = exports.CLIENT_CONTAINER_ID = exports.PUBLIC_ENV_PREFIX = exports.ROUTE_RESOURCE_QUERYSTRING = exports.DEV_ONLY_ASSETS_PREFIX = exports.NAME = void 0;
|
|
4
4
|
// common
|
|
5
5
|
exports.NAME = 'shuvi';
|
|
6
6
|
exports.DEV_ONLY_ASSETS_PREFIX = `/_${exports.NAME}`;
|
|
@@ -26,11 +26,7 @@ exports.SHUVI_ERROR = {
|
|
|
26
26
|
message: 'This page could not be found.'
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
|
|
30
|
-
exports.BUNDLER_DEFAULT_TARGET = `${exports.NAME}/client`;
|
|
31
|
-
// service has BUNDLER_DEFAULT_TARGET and
|
|
32
|
-
// shuvi inner has used BUNDLER_DEFAULT_TARGET replaced BUNDLER_DEFAULT_TARGET,
|
|
33
|
-
// keep BUNDLER_TARGET_CLIENT for old users plugins, will be remove in future
|
|
34
|
-
exports.BUNDLER_TARGET_CLIENT = exports.BUNDLER_DEFAULT_TARGET;
|
|
29
|
+
exports.BUNDLER_TARGET_CLIENT = `${exports.NAME}/client`;
|
|
35
30
|
exports.BUNDLER_TARGET_SERVER = `${exports.NAME}/server`;
|
|
36
|
-
exports.
|
|
31
|
+
exports.CLIENT_OUTPUT_DIR = 'client';
|
|
32
|
+
exports.SERVER_OUTPUT_DIR = 'server';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shuvi/shared",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.16",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/shuvijs/shuvi.git",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
"node": ">= 12.0.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@shuvi/hook": "1.0.0-rc.
|
|
29
|
+
"@shuvi/hook": "1.0.0-rc.16"
|
|
30
30
|
}
|
|
31
31
|
}
|