@shuvi/shared 1.0.0-rc.10 → 1.0.0-rc.13

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.
@@ -6,12 +6,10 @@ export declare const CLIENT_CONTAINER_ID = "__APP";
6
6
  export declare const CLIENT_APPDATA_ID = "__APP_DATA";
7
7
  export declare const DEV_STYLE_ANCHOR_ID = "__shuvi_style_anchor";
8
8
  export declare const DEV_STYLE_HIDE_FOUC = "data-shuvi-hide-fouc";
9
- export declare const DEV_STYLE_PREPARE = "__shuvi_style_prepare";
10
9
  export declare const DEV_HOT_MIDDLEWARE_PATH: string;
11
10
  export declare const DEV_HOT_LAUNCH_EDITOR_ENDPOINT: string;
12
11
  export declare const DEV_ORIGINAL_STACK_FRAME_ENDPOINT: string;
13
12
  export declare const DEV_SOCKET_TIMEOUT_MS = 5000;
14
- export declare const IDENTITY_RUNTIME_PUBLICPATH: string;
15
13
  export declare const ROUTE_NOT_FOUND_NAME = "404";
16
14
  export declare const SHUVI_ERROR: {
17
15
  APP_ERROR: {
@@ -26,3 +24,4 @@ export declare const SHUVI_ERROR: {
26
24
  export declare const BUNDLER_DEFAULT_TARGET: string;
27
25
  export declare const BUNDLER_TARGET_CLIENT: string;
28
26
  export declare const BUNDLER_TARGET_SERVER: string;
27
+ export declare const BUILD_CLIENT_RUNTIME_POLYFILLS_SYMBOL: unique symbol;
package/esm/constants.js CHANGED
@@ -8,12 +8,10 @@ export const CLIENT_CONTAINER_ID = '__APP';
8
8
  export const CLIENT_APPDATA_ID = '__APP_DATA';
9
9
  export const DEV_STYLE_ANCHOR_ID = '__shuvi_style_anchor';
10
10
  export const DEV_STYLE_HIDE_FOUC = 'data-shuvi-hide-fouc';
11
- export const DEV_STYLE_PREPARE = '__shuvi_style_prepare';
12
11
  export const DEV_HOT_MIDDLEWARE_PATH = `${DEV_ONLY_ASSETS_PREFIX}/webpack-hmr`;
13
12
  export const DEV_HOT_LAUNCH_EDITOR_ENDPOINT = `${DEV_ONLY_ASSETS_PREFIX}/development/open-stack-frame-in-editor`;
14
13
  export const DEV_ORIGINAL_STACK_FRAME_ENDPOINT = `${DEV_ONLY_ASSETS_PREFIX}/development/original-stack-frame`;
15
14
  export const DEV_SOCKET_TIMEOUT_MS = 5000;
16
- export const IDENTITY_RUNTIME_PUBLICPATH = `__${NAME}_dynamic_public_path__`;
17
15
  export const ROUTE_NOT_FOUND_NAME = `404`;
18
16
  export const SHUVI_ERROR = {
19
17
  APP_ERROR: {
@@ -32,3 +30,4 @@ export const BUNDLER_DEFAULT_TARGET = `${NAME}/client`;
32
30
  // keep BUNDLER_TARGET_CLIENT for old users plugins, will be remove in future
33
31
  export const BUNDLER_TARGET_CLIENT = BUNDLER_DEFAULT_TARGET;
34
32
  export const BUNDLER_TARGET_SERVER = `${NAME}/server`;
33
+ export const BUILD_CLIENT_RUNTIME_POLYFILLS_SYMBOL = Symbol(`polyfills`);
@@ -6,12 +6,10 @@ export declare const CLIENT_CONTAINER_ID = "__APP";
6
6
  export declare const CLIENT_APPDATA_ID = "__APP_DATA";
7
7
  export declare const DEV_STYLE_ANCHOR_ID = "__shuvi_style_anchor";
8
8
  export declare const DEV_STYLE_HIDE_FOUC = "data-shuvi-hide-fouc";
9
- export declare const DEV_STYLE_PREPARE = "__shuvi_style_prepare";
10
9
  export declare const DEV_HOT_MIDDLEWARE_PATH: string;
11
10
  export declare const DEV_HOT_LAUNCH_EDITOR_ENDPOINT: string;
12
11
  export declare const DEV_ORIGINAL_STACK_FRAME_ENDPOINT: string;
13
12
  export declare const DEV_SOCKET_TIMEOUT_MS = 5000;
14
- export declare const IDENTITY_RUNTIME_PUBLICPATH: string;
15
13
  export declare const ROUTE_NOT_FOUND_NAME = "404";
16
14
  export declare const SHUVI_ERROR: {
17
15
  APP_ERROR: {
@@ -26,3 +24,4 @@ export declare const SHUVI_ERROR: {
26
24
  export declare const BUNDLER_DEFAULT_TARGET: string;
27
25
  export declare const BUNDLER_TARGET_CLIENT: string;
28
26
  export declare const BUNDLER_TARGET_SERVER: string;
27
+ export declare const BUILD_CLIENT_RUNTIME_POLYFILLS_SYMBOL: unique symbol;
package/lib/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BUNDLER_TARGET_SERVER = exports.BUNDLER_TARGET_CLIENT = exports.BUNDLER_DEFAULT_TARGET = exports.SHUVI_ERROR = exports.ROUTE_NOT_FOUND_NAME = exports.IDENTITY_RUNTIME_PUBLICPATH = 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_PREPARE = 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;
3
+ exports.BUILD_CLIENT_RUNTIME_POLYFILLS_SYMBOL = exports.BUNDLER_TARGET_SERVER = exports.BUNDLER_TARGET_CLIENT = exports.BUNDLER_DEFAULT_TARGET = 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}`;
@@ -11,12 +11,10 @@ exports.CLIENT_CONTAINER_ID = '__APP';
11
11
  exports.CLIENT_APPDATA_ID = '__APP_DATA';
12
12
  exports.DEV_STYLE_ANCHOR_ID = '__shuvi_style_anchor';
13
13
  exports.DEV_STYLE_HIDE_FOUC = 'data-shuvi-hide-fouc';
14
- exports.DEV_STYLE_PREPARE = '__shuvi_style_prepare';
15
14
  exports.DEV_HOT_MIDDLEWARE_PATH = `${exports.DEV_ONLY_ASSETS_PREFIX}/webpack-hmr`;
16
15
  exports.DEV_HOT_LAUNCH_EDITOR_ENDPOINT = `${exports.DEV_ONLY_ASSETS_PREFIX}/development/open-stack-frame-in-editor`;
17
16
  exports.DEV_ORIGINAL_STACK_FRAME_ENDPOINT = `${exports.DEV_ONLY_ASSETS_PREFIX}/development/original-stack-frame`;
18
17
  exports.DEV_SOCKET_TIMEOUT_MS = 5000;
19
- exports.IDENTITY_RUNTIME_PUBLICPATH = `__${exports.NAME}_dynamic_public_path__`;
20
18
  exports.ROUTE_NOT_FOUND_NAME = `404`;
21
19
  exports.SHUVI_ERROR = {
22
20
  APP_ERROR: {
@@ -35,3 +33,4 @@ exports.BUNDLER_DEFAULT_TARGET = `${exports.NAME}/client`;
35
33
  // keep BUNDLER_TARGET_CLIENT for old users plugins, will be remove in future
36
34
  exports.BUNDLER_TARGET_CLIENT = exports.BUNDLER_DEFAULT_TARGET;
37
35
  exports.BUNDLER_TARGET_SERVER = `${exports.NAME}/server`;
36
+ exports.BUILD_CLIENT_RUNTIME_POLYFILLS_SYMBOL = Symbol(`polyfills`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuvi/shared",
3
- "version": "1.0.0-rc.10",
3
+ "version": "1.0.0-rc.13",
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.10"
29
+ "@shuvi/hook": "1.0.0-rc.13"
30
30
  }
31
31
  }