@modern-js/runtime 1.4.2 → 1.5.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.
Files changed (83) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/js/modern/cli/index.js +1 -3
  3. package/dist/js/modern/core/app-config.js +10 -0
  4. package/dist/js/modern/core/compatible.js +218 -0
  5. package/dist/js/modern/core/index.js +7 -0
  6. package/dist/js/modern/core/loader/index.js +1 -0
  7. package/dist/js/modern/core/loader/loaderManager.js +189 -0
  8. package/dist/js/modern/core/loader/useLoader.js +105 -0
  9. package/dist/js/modern/core/plugin.js +63 -0
  10. package/dist/js/modern/core/runtime-context.js +2 -0
  11. package/dist/js/modern/exports/styled.js +2 -2
  12. package/dist/js/modern/index.js +1 -1
  13. package/dist/js/modern/router/cli/index.js +1 -3
  14. package/dist/js/modern/router/runtime/plugin.js +1 -1
  15. package/dist/js/modern/router/runtime/utils.js +3 -1
  16. package/dist/js/modern/ssr/cli/index.js +1 -3
  17. package/dist/js/modern/ssr/index.node.js +1 -1
  18. package/dist/js/modern/ssr/prefetch.js +2 -2
  19. package/dist/js/modern/ssr/serverRender/index.js +1 -1
  20. package/dist/js/modern/ssr/serverRender/styledComponent.js +1 -1
  21. package/dist/js/modern/state/cli/index.js +1 -3
  22. package/dist/js/modern/state/runtime/plugin.js +1 -1
  23. package/dist/js/node/cli/index.js +1 -3
  24. package/dist/js/node/core/app-config.js +22 -0
  25. package/dist/js/node/core/compatible.js +247 -0
  26. package/dist/js/node/core/index.js +111 -0
  27. package/dist/js/node/core/loader/index.js +15 -0
  28. package/dist/js/node/core/loader/loaderManager.js +201 -0
  29. package/dist/js/node/core/loader/useLoader.js +118 -0
  30. package/dist/js/node/core/plugin.js +79 -0
  31. package/dist/js/node/core/runtime-context.js +11 -0
  32. package/dist/js/node/exports/styled.js +5 -5
  33. package/dist/js/node/index.js +10 -10
  34. package/dist/js/node/router/cli/index.js +1 -8
  35. package/dist/js/node/router/runtime/plugin.js +3 -3
  36. package/dist/js/node/router/runtime/utils.js +3 -1
  37. package/dist/js/node/ssr/cli/index.js +1 -8
  38. package/dist/js/node/ssr/index.node.js +2 -2
  39. package/dist/js/node/ssr/serverRender/index.js +2 -2
  40. package/dist/js/node/ssr/serverRender/styledComponent.js +2 -2
  41. package/dist/js/node/state/cli/index.js +1 -8
  42. package/dist/js/node/state/runtime/plugin.js +3 -3
  43. package/dist/js/treeshaking/cli/index.js +1 -3
  44. package/dist/js/treeshaking/core/app-config.js +13 -0
  45. package/dist/js/treeshaking/core/compatible.js +255 -0
  46. package/dist/js/treeshaking/core/index.js +7 -0
  47. package/dist/js/treeshaking/core/loader/index.js +1 -0
  48. package/dist/js/treeshaking/core/loader/loaderManager.js +267 -0
  49. package/dist/js/treeshaking/core/loader/useLoader.js +107 -0
  50. package/dist/js/treeshaking/core/plugin.js +105 -0
  51. package/dist/js/treeshaking/core/runtime-context.js +2 -0
  52. package/dist/js/treeshaking/exports/styled.js +2 -2
  53. package/dist/js/treeshaking/index.js +1 -1
  54. package/dist/js/treeshaking/router/cli/index.js +1 -3
  55. package/dist/js/treeshaking/router/runtime/plugin.js +1 -1
  56. package/dist/js/treeshaking/router/runtime/utils.js +3 -1
  57. package/dist/js/treeshaking/ssr/cli/index.js +1 -3
  58. package/dist/js/treeshaking/ssr/index.node.js +1 -1
  59. package/dist/js/treeshaking/ssr/prefetch.js +2 -2
  60. package/dist/js/treeshaking/ssr/serverRender/index.js +1 -1
  61. package/dist/js/treeshaking/ssr/serverRender/styledComponent.js +1 -1
  62. package/dist/js/treeshaking/state/cli/index.js +1 -3
  63. package/dist/js/treeshaking/state/runtime/plugin.js +1 -1
  64. package/dist/types/core/app-config.d.ts +6 -0
  65. package/dist/types/core/compatible.d.ts +13 -0
  66. package/dist/types/core/index.d.ts +9 -0
  67. package/dist/types/core/loader/index.d.ts +2 -0
  68. package/dist/types/core/loader/loaderManager.d.ts +57 -0
  69. package/dist/types/core/loader/useLoader.d.ts +54 -0
  70. package/dist/types/core/plugin.d.ts +208 -0
  71. package/dist/types/core/runtime-context.d.ts +13 -0
  72. package/dist/types/exports/styled.d.ts +2 -2
  73. package/dist/types/index.d.ts +4 -9
  74. package/dist/types/router/runtime/plugin.d.ts +1 -1
  75. package/dist/types/ssr/index.d.ts +2 -2
  76. package/dist/types/ssr/index.node.d.ts +1 -1
  77. package/dist/types/ssr/prefetch.d.ts +2 -2
  78. package/dist/types/ssr/serverRender/entry.d.ts +1 -1
  79. package/dist/types/ssr/serverRender/index.d.ts +1 -1
  80. package/dist/types/ssr/serverRender/type.d.ts +1 -1
  81. package/dist/types/state/runtime/plugin.d.ts +2 -2
  82. package/lib/types.d.ts +10 -0
  83. package/package.json +59 -25
@@ -0,0 +1,208 @@
1
+ import type React from 'react';
2
+ import { Setup, ToThreads, CommonAPI, PluginOptions } from '@modern-js/plugin';
3
+ import type { RuntimeContext, TRuntimeContext } from './runtime-context';
4
+ export interface AppProps {}
5
+ declare const runtimeHooks: {
6
+ hoc: import("@modern-js/plugin").Pipeline<{
7
+ App: React.ComponentType<any>;
8
+ }, React.ComponentType<any>>;
9
+ provide: import("@modern-js/plugin").Pipeline<{
10
+ element: JSX.Element;
11
+ readonly props: AppProps;
12
+ readonly context: RuntimeContext;
13
+ }, JSX.Element>;
14
+ client: import("@modern-js/plugin").AsyncPipeline<{
15
+ App: React.ComponentType<any>;
16
+ readonly context?: RuntimeContext | undefined;
17
+ rootElement: HTMLElement;
18
+ }, void>;
19
+ server: import("@modern-js/plugin").AsyncPipeline<{
20
+ App: React.ComponentType<any>;
21
+ readonly context?: RuntimeContext | undefined;
22
+ }, string>;
23
+ init: import("@modern-js/plugin").AsyncPipeline<{
24
+ context: RuntimeContext;
25
+ }, unknown>;
26
+ pickContext: import("@modern-js/plugin").Pipeline<{
27
+ context: RuntimeContext;
28
+ pickedContext: TRuntimeContext;
29
+ }, TRuntimeContext>;
30
+ };
31
+ /** All hooks of runtime plugin. */
32
+
33
+ export declare type RuntimeHooks = typeof runtimeHooks;
34
+ /** All hook callbacks of runtime plugin. */
35
+
36
+ export declare type RuntimeHookCallbacks = ToThreads<RuntimeHooks>;
37
+ /** All apis for runtime plugin. */
38
+
39
+ export declare type PluginAPI = CommonAPI<RuntimeHooks>;
40
+ /** Plugin options of a runtime plugin. */
41
+
42
+ export declare type Plugin = PluginOptions<RuntimeHooks, Setup<RuntimeHooks>>;
43
+ export declare const createRuntime: () => import("@modern-js/plugin").Manager<{
44
+ hoc: import("@modern-js/plugin").Pipeline<{
45
+ App: React.ComponentType<any>;
46
+ }, React.ComponentType<any>>;
47
+ provide: import("@modern-js/plugin").Pipeline<{
48
+ element: JSX.Element;
49
+ readonly props: AppProps;
50
+ readonly context: RuntimeContext;
51
+ }, JSX.Element>;
52
+ client: import("@modern-js/plugin").AsyncPipeline<{
53
+ App: React.ComponentType<any>;
54
+ readonly context?: RuntimeContext | undefined;
55
+ rootElement: HTMLElement;
56
+ }, void>;
57
+ server: import("@modern-js/plugin").AsyncPipeline<{
58
+ App: React.ComponentType<any>;
59
+ readonly context?: RuntimeContext | undefined;
60
+ }, string>;
61
+ init: import("@modern-js/plugin").AsyncPipeline<{
62
+ context: RuntimeContext;
63
+ }, unknown>;
64
+ pickContext: import("@modern-js/plugin").Pipeline<{
65
+ context: RuntimeContext;
66
+ pickedContext: TRuntimeContext;
67
+ }, TRuntimeContext>;
68
+ }, Record<string, never>>;
69
+ /**
70
+ * register init hook. It would be revoked both ssr and csr.
71
+ */
72
+
73
+ declare const registerInit: (App: React.ComponentType, _init: (context: RuntimeContext) => any | Promise<any>) => void;
74
+ /**
75
+ * register prefetch hook. It would be revoked both ssr and csr.
76
+ * But if ssr success, It wont exec in csr again.
77
+ * If ssr prefetch failed, It will fallback to exec in csr.
78
+ */
79
+
80
+ declare const registerPrefetch: (App: React.ComponentType, prefetch: (context: RuntimeContext) => Promise<any>) => void;
81
+ export declare const runtime: import("@modern-js/plugin").Manager<{
82
+ hoc: import("@modern-js/plugin").Pipeline<{
83
+ App: React.ComponentType<any>;
84
+ }, React.ComponentType<any>>;
85
+ provide: import("@modern-js/plugin").Pipeline<{
86
+ element: JSX.Element;
87
+ readonly props: AppProps;
88
+ readonly context: RuntimeContext;
89
+ }, JSX.Element>;
90
+ client: import("@modern-js/plugin").AsyncPipeline<{
91
+ App: React.ComponentType<any>;
92
+ readonly context?: RuntimeContext | undefined;
93
+ rootElement: HTMLElement;
94
+ }, void>;
95
+ server: import("@modern-js/plugin").AsyncPipeline<{
96
+ App: React.ComponentType<any>;
97
+ readonly context?: RuntimeContext | undefined;
98
+ }, string>;
99
+ init: import("@modern-js/plugin").AsyncPipeline<{
100
+ context: RuntimeContext;
101
+ }, unknown>;
102
+ pickContext: import("@modern-js/plugin").Pipeline<{
103
+ context: RuntimeContext;
104
+ pickedContext: TRuntimeContext;
105
+ }, TRuntimeContext>;
106
+ }, Record<string, never>>;
107
+ export declare const createPlugin: (setup?: Setup<{
108
+ hoc: import("@modern-js/plugin").Pipeline<{
109
+ App: React.ComponentType<any>;
110
+ }, React.ComponentType<any>>;
111
+ provide: import("@modern-js/plugin").Pipeline<{
112
+ element: JSX.Element;
113
+ readonly props: AppProps;
114
+ readonly context: RuntimeContext;
115
+ }, JSX.Element>;
116
+ client: import("@modern-js/plugin").AsyncPipeline<{
117
+ App: React.ComponentType<any>;
118
+ readonly context?: RuntimeContext | undefined;
119
+ rootElement: HTMLElement;
120
+ }, void>;
121
+ server: import("@modern-js/plugin").AsyncPipeline<{
122
+ App: React.ComponentType<any>;
123
+ readonly context?: RuntimeContext | undefined;
124
+ }, string>;
125
+ init: import("@modern-js/plugin").AsyncPipeline<{
126
+ context: RuntimeContext;
127
+ }, unknown>;
128
+ pickContext: import("@modern-js/plugin").Pipeline<{
129
+ context: RuntimeContext;
130
+ pickedContext: TRuntimeContext;
131
+ }, TRuntimeContext>;
132
+ }, Record<string, never>> | undefined, options?: PluginOptions<{
133
+ hoc: import("@modern-js/plugin").Pipeline<{
134
+ App: React.ComponentType<any>;
135
+ }, React.ComponentType<any>>;
136
+ provide: import("@modern-js/plugin").Pipeline<{
137
+ element: JSX.Element;
138
+ readonly props: AppProps;
139
+ readonly context: RuntimeContext;
140
+ }, JSX.Element>;
141
+ client: import("@modern-js/plugin").AsyncPipeline<{
142
+ App: React.ComponentType<any>;
143
+ readonly context?: RuntimeContext | undefined;
144
+ rootElement: HTMLElement;
145
+ }, void>;
146
+ server: import("@modern-js/plugin").AsyncPipeline<{
147
+ App: React.ComponentType<any>;
148
+ readonly context?: RuntimeContext | undefined;
149
+ }, string>;
150
+ init: import("@modern-js/plugin").AsyncPipeline<{
151
+ context: RuntimeContext;
152
+ }, unknown>;
153
+ pickContext: import("@modern-js/plugin").Pipeline<{
154
+ context: RuntimeContext;
155
+ pickedContext: TRuntimeContext;
156
+ }, TRuntimeContext>;
157
+ }, Setup<{
158
+ hoc: import("@modern-js/plugin").Pipeline<{
159
+ App: React.ComponentType<any>;
160
+ }, React.ComponentType<any>>;
161
+ provide: import("@modern-js/plugin").Pipeline<{
162
+ element: JSX.Element;
163
+ readonly props: AppProps;
164
+ readonly context: RuntimeContext;
165
+ }, JSX.Element>;
166
+ client: import("@modern-js/plugin").AsyncPipeline<{
167
+ App: React.ComponentType<any>;
168
+ readonly context?: RuntimeContext | undefined;
169
+ rootElement: HTMLElement;
170
+ }, void>;
171
+ server: import("@modern-js/plugin").AsyncPipeline<{
172
+ App: React.ComponentType<any>;
173
+ readonly context?: RuntimeContext | undefined;
174
+ }, string>;
175
+ init: import("@modern-js/plugin").AsyncPipeline<{
176
+ context: RuntimeContext;
177
+ }, unknown>;
178
+ pickContext: import("@modern-js/plugin").Pipeline<{
179
+ context: RuntimeContext;
180
+ pickedContext: TRuntimeContext;
181
+ }, TRuntimeContext>;
182
+ }, Record<string, never>>> | undefined) => import("@modern-js/plugin").Plugin<{
183
+ hoc: import("@modern-js/plugin").Pipeline<{
184
+ App: React.ComponentType<any>;
185
+ }, React.ComponentType<any>>;
186
+ provide: import("@modern-js/plugin").Pipeline<{
187
+ element: JSX.Element;
188
+ readonly props: AppProps;
189
+ readonly context: RuntimeContext;
190
+ }, JSX.Element>;
191
+ client: import("@modern-js/plugin").AsyncPipeline<{
192
+ App: React.ComponentType<any>;
193
+ readonly context?: RuntimeContext | undefined;
194
+ rootElement: HTMLElement;
195
+ }, void>;
196
+ server: import("@modern-js/plugin").AsyncPipeline<{
197
+ App: React.ComponentType<any>;
198
+ readonly context?: RuntimeContext | undefined;
199
+ }, string>;
200
+ init: import("@modern-js/plugin").AsyncPipeline<{
201
+ context: RuntimeContext;
202
+ }, unknown>;
203
+ pickContext: import("@modern-js/plugin").Pipeline<{
204
+ context: RuntimeContext;
205
+ pickedContext: TRuntimeContext;
206
+ }, TRuntimeContext>;
207
+ }, Record<string, never>>;
208
+ export { registerInit, registerPrefetch };
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { createLoaderManager } from './loader/loaderManager';
3
+ import { runtime } from './plugin';
4
+ export interface RuntimeContext {
5
+ loaderManager: ReturnType<typeof createLoaderManager>;
6
+ runner: ReturnType<typeof runtime.init>;
7
+ [key: string]: any;
8
+ }
9
+ export declare const RuntimeReactContext: import("react").Context<RuntimeContext>;
10
+ export interface TRuntimeContext {
11
+ initialData?: Record<string, unknown>;
12
+ [key: string]: any;
13
+ }
@@ -1,3 +1,3 @@
1
- import styled from '@modern-js/runtime-core/styled';
1
+ import styled from 'styled-components';
2
2
  export default styled;
3
- export * from '@modern-js/runtime-core/styled';
3
+ export * from 'styled-components';
@@ -1,16 +1,11 @@
1
1
  import type { StateConfig } from './state';
2
2
  import type { RouterConfig } from './router';
3
- export type { RuntimeContext, TRuntimeContext } from '@modern-js/runtime-core';
4
- export { createApp, createPlugin, useLoader, bootstrap, RuntimeReactContext, registerPrefetch, defineConfig, registerInit, useRuntimeContext } from '@modern-js/runtime-core';
5
- declare module '@modern-js/runtime-core' {
3
+ export type { Plugin, RuntimeContext, TRuntimeContext, AppConfig } from './core';
4
+ export { createApp, createPlugin, useLoader, bootstrap, RuntimeReactContext, registerPrefetch, defineConfig, registerInit, useRuntimeContext } from './core';
5
+ export { StateConfig, RouterConfig };
6
+ declare module './core' {
6
7
  interface AppConfig {
7
8
  router?: RouterConfig | boolean;
8
9
  state?: StateConfig | boolean;
9
10
  }
10
- }
11
- declare module '@modern-js/core' {
12
- interface RuntimeConfig {
13
- router?: RouterConfig | boolean;
14
- state?: StateConfig | boolean;
15
- }
16
11
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { History, BrowserHistoryBuildOptions, HashHistoryBuildOptions } from 'history';
3
3
  import { RouteProps } from 'react-router-dom';
4
- import type { Plugin } from '@modern-js/runtime-core';
4
+ import type { Plugin } from '../../core';
5
5
  declare global {
6
6
  interface Window {
7
7
  _SERVER_DATA?: {
@@ -1,6 +1,6 @@
1
- import type { Plugin } from '@modern-js/runtime-core';
1
+ import type { Plugin } from '../core';
2
2
  import { RenderLevel, SSRServerContext } from './serverRender/type';
3
- declare module '@modern-js/runtime-core' {
3
+ declare module '../core' {
4
4
  interface RuntimeContext {
5
5
  ssrContext: SSRServerContext;
6
6
  }
@@ -1,4 +1,4 @@
1
- import type { Plugin } from '@modern-js/runtime-core';
1
+ import type { Plugin } from '../core';
2
2
  declare const plugin: () => Plugin;
3
3
  export default plugin;
4
4
  export * from './react';
@@ -1,11 +1,11 @@
1
- import { RuntimeContext } from '@modern-js/runtime-core';
1
+ import { RuntimeContext } from '../core';
2
2
  declare const prefetch: (App: React.ComponentType<any>, context: RuntimeContext) => Promise<{
3
3
  initialData: any;
4
4
  i18nData: any;
5
5
  loadersData?: undefined;
6
6
  storeState?: undefined;
7
7
  } | {
8
- loadersData: Record<string, import("@modern-js/runtime-core/src/loader/loaderManager").LoaderResult>;
8
+ loadersData: Record<string, import("../core/loader/loaderManager").LoaderResult>;
9
9
  initialData: any;
10
10
  i18nData: any;
11
11
  storeState: any;
@@ -1,4 +1,4 @@
1
- import { RuntimeContext } from '@modern-js/runtime-core';
1
+ import { RuntimeContext } from '../../core';
2
2
  import { ModernSSRReactComponent, SSRServerContext, RenderResult } from './type';
3
3
  declare type EntryOptions = {
4
4
  ctx: SSRServerContext;
@@ -1,4 +1,4 @@
1
- import { RuntimeContext } from '@modern-js/runtime-core';
1
+ import { RuntimeContext } from '../../core';
2
2
  import { ModernSSRReactComponent } from './type';
3
3
  declare module '@modern-js/runtime' {
4
4
  interface RuntimeContext {
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { RuntimeContext } from '@modern-js/runtime-core';
3
2
  import type { BaseSSRServerContext } from '@modern-js/types';
3
+ import type { RuntimeContext } from '../../core';
4
4
  export declare enum RenderLevel {
5
5
  CLIENT_RENDER = 0,
6
6
  SERVER_PREFETCH = 1,
@@ -1,6 +1,6 @@
1
1
  import { createStore, Store } from '@modern-js-reduck/store';
2
- import type { Plugin } from '@modern-js/runtime-core';
3
- declare module '@modern-js/runtime-core' {
2
+ import type { Plugin } from '../../core';
3
+ declare module '../../core' {
4
4
  interface RuntimeContext {
5
5
  store: Store;
6
6
  }
package/lib/types.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ /// <reference path="../dist/types/index.d.ts" />
2
+
3
+ import { RouterConfig, StateConfig } from "../dist/types";
4
+
5
+ declare module '@modern-js/core' {
6
+ interface RuntimeConfig {
7
+ router?: RouterConfig | boolean;
8
+ state?: StateConfig | boolean;
9
+ }
10
+ }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.4.2",
14
+ "version": "1.5.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./type.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -25,6 +25,10 @@
25
25
  },
26
26
  "default": "./dist/js/treeshaking/index.js"
27
27
  },
28
+ "./types": {
29
+ "jsnext:source": "./lib/types.d.ts",
30
+ "default": "./lib/types.d.ts"
31
+ },
28
32
  "./loadable": {
29
33
  "jsnext:source": "./src/exports/loadable.ts",
30
34
  "node": "./dist/js/node/exports/loadable.js",
@@ -63,6 +67,21 @@
63
67
  "./cli": {
64
68
  "jsnext:source": "./src/cli/index.ts",
65
69
  "default": "./dist/js/node/cli/index.js"
70
+ },
71
+ "./runtime-router": {
72
+ "jsnext:source": "./src/router/index.ts",
73
+ "node": "./dist/js/node/router/index",
74
+ "default": "./dist/js/treeshaking/router/index.js"
75
+ },
76
+ "./runtime-state": {
77
+ "jsnext:source": "./src/state/index.ts",
78
+ "node": "./dist/js/node/state/index",
79
+ "default": "./dist/js/treeshaking/state/index.js"
80
+ },
81
+ "./runtime-ssr": {
82
+ "jsnext:source": "./src/ssr/index.ts",
83
+ "node": "./dist/js/node/ssr/index",
84
+ "default": "./dist/js/treeshaking/ssr/index.js"
66
85
  }
67
86
  },
68
87
  "typesVersions": {
@@ -70,6 +89,9 @@
70
89
  ".": [
71
90
  "./type.d.ts"
72
91
  ],
92
+ "types": [
93
+ "./lib/types.d.ts"
94
+ ],
73
95
  "loadable": [
74
96
  "./dist/types/exports/loadable.d.ts"
75
97
  ],
@@ -90,60 +112,72 @@
90
112
  ],
91
113
  "model": [
92
114
  "./types/model.d.ts"
115
+ ],
116
+ "runtime-router": [
117
+ "./dist/types/router/index.d.ts"
118
+ ],
119
+ "runtime-state": [
120
+ "./dist/types/state/index.d.ts"
121
+ ],
122
+ "runtime-ssr": [
123
+ "./dist/types/ssr/index.d.ts"
93
124
  ]
94
125
  }
95
126
  },
96
127
  "dependencies": {
97
- "@babel/runtime": "^7.18.0",
98
- "@modern-js/runtime-core": "^1.5.4",
99
- "@modern-js/utils": "^1.8.0",
100
- "@loadable/component": "^5.15.0",
101
- "@types/loadable__component": "^5.13.4",
102
- "@types/react-helmet": "^6.1.2",
103
128
  "react-helmet": "^6.1.0",
104
129
  "react-side-effect": "^2.1.1",
105
130
  "react-is": "^17",
106
- "@babel/core": "^7.18.0",
107
- "@loadable/babel-plugin": "^5.13.2",
108
- "@loadable/server": "^5.15.1",
109
- "@modern-js/webpack": "^1.12.3",
110
131
  "serialize-javascript": "^6.0.0",
111
132
  "history": "^4.7.9",
112
133
  "react-router-dom": "^5.1.2",
113
134
  "hoist-non-react-statics": "^3.3.2",
114
- "@types/history": "^4.7.9",
115
- "@types/react-router-dom": "^5.1.8",
135
+ "invariant": "^2.2.4",
136
+ "redux-logger": "^3.0.6",
137
+ "styled-components": "^5.3.1",
138
+ "@babel/core": "^7.18.0",
139
+ "@babel/runtime": "^7.18.0",
140
+ "@loadable/babel-plugin": "^5.13.2",
141
+ "@loadable/server": "^5.15.1",
142
+ "@loadable/component": "^5.15.0",
143
+ "@modern-js/plugin": "^1.4.2",
144
+ "@modern-js/webpack": "^1.12.4",
145
+ "@modern-js/utils": "^1.9.0",
116
146
  "@modern-js-reduck/plugin-auto-actions": "^1.0.2",
117
147
  "@modern-js-reduck/plugin-devtools": "^1.0.3",
118
148
  "@modern-js-reduck/plugin-effects": "^1.0.2",
119
149
  "@modern-js-reduck/plugin-immutable": "^1.0.1",
120
150
  "@modern-js-reduck/react": "^1.0.1",
121
151
  "@modern-js-reduck/store": "^1.0.3",
152
+ "@types/history": "^4.7.9",
153
+ "@types/react-router-dom": "^5.1.8",
154
+ "@types/react-helmet": "^6.1.2",
122
155
  "@types/redux-logger": "^3.0.9",
123
- "redux-logger": "^3.0.6"
156
+ "@types/loadable__component": "^5.13.4",
157
+ "@types/styled-components": "^5.1.14"
124
158
  },
125
159
  "devDependencies": {
126
- "@modern-js/core": "1.13.2",
127
- "@scripts/build": "0.0.0",
160
+ "react": "^17",
161
+ "react-dom": "^17",
162
+ "ts-jest": "^27.0.4",
163
+ "typescript": "^4",
164
+ "jest": "^27",
165
+ "@modern-js/core": "1.14.0",
166
+ "@modern-js/types": "1.6.2",
167
+ "@modern-js/utils": "1.9.0",
128
168
  "@types/jest": "^27",
129
169
  "@types/node": "^14",
130
170
  "@types/react": "^17",
131
171
  "@types/react-dom": "^17",
132
- "react": "^17",
133
- "typescript": "^4",
134
- "jest": "^27",
135
- "@modern-js/types": "1.6.1",
136
- "@modern-js/utils": "1.8.0",
137
172
  "@types/react-side-effect": "^1.1.1",
138
173
  "@types/loadable__webpack-plugin": "^5.7.3",
139
174
  "@types/serialize-javascript": "^5.0.1",
175
+ "@scripts/build": "0.0.0",
140
176
  "@scripts/jest-config": "0.0.0",
141
- "@modern-js/plugin": "1.4.2",
142
- "@modern-js/runtime-core": "1.5.4",
143
177
  "@testing-library/react": "^12.0.0",
178
+ "@testing-library/react-hooks": "^7.0.1",
144
179
  "@types/hoist-non-react-statics": "^3.3.1",
145
- "react-dom": "^17",
146
- "ts-jest": "^27.0.4"
180
+ "@types/invariant": "^2.2.30"
147
181
  },
148
182
  "sideEffects": false,
149
183
  "modernConfig": {},