@modern-js/devtools-kit 0.0.0-nightly-20240104170621 → 0.0.0-nightly-20240106170605
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/dist/server.d.ts +5 -8
- package/package.json +9 -11
package/dist/server.d.ts
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import type { AppTools, IAppContext, UserConfig } from '@modern-js/app-tools';
|
|
2
|
-
import type {
|
|
3
|
-
import type { BuilderConfig as WebpackBuilderConfig, NormalizedConfig as NormalizedWebpackBuilderConfig, WebpackConfig, webpack } from '@modern-js/builder-webpack-provider';
|
|
4
|
-
import type { BuilderConfig as RspackBuilderConfig, NormalizedConfig as NormalizedRspackBuilderConfig, RspackConfig, Rspack } from '@modern-js/builder-rspack-provider';
|
|
2
|
+
import type { RsbuildContext, NormalizedConfig as NormalizedBuilderConfig, RsbuildConfig, webpack, Rspack, WebpackConfig, RspackConfig } from '@modern-js/uni-builder';
|
|
5
3
|
import { NormalizedConfig } from '@modern-js/core';
|
|
6
4
|
import { RouteLegacy, NestedRouteForCli, PageRoute } from '@modern-js/types/cli';
|
|
7
5
|
import type { ClientDefinition } from './client';
|
|
8
|
-
export type
|
|
6
|
+
export type BuilderContext = RsbuildContext;
|
|
9
7
|
export type FrameworkConfig = UserConfig<AppTools>;
|
|
10
8
|
export type TransformedFrameworkConfig = NormalizedConfig<AppTools>;
|
|
11
|
-
export type BuilderConfig =
|
|
12
|
-
export type { WebpackConfig, RspackConfig };
|
|
9
|
+
export type BuilderConfig = RsbuildConfig;
|
|
10
|
+
export type { NormalizedBuilderConfig, WebpackConfig, RspackConfig };
|
|
13
11
|
export type Aliases = NonNullable<NonNullable<WebpackConfig['resolve']>['alias']>;
|
|
14
12
|
export type BundlerConfig = WebpackConfig | RspackConfig;
|
|
15
13
|
export type Compiler = webpack.Compiler | Rspack.Compiler | webpack.MultiCompiler | Rspack.MultiCompiler;
|
|
16
|
-
export type NormalizedBuilderConfig = NormalizedWebpackBuilderConfig | NormalizedRspackBuilderConfig;
|
|
17
14
|
export type AppContext = Omit<IAppContext, 'builder' | 'serverInternalPlugins'>;
|
|
18
15
|
export type FileSystemRoutes = RouteLegacy[] | (NestedRouteForCli | PageRoute)[];
|
|
19
16
|
export interface ServerFunctions {
|
|
@@ -25,7 +22,7 @@ export interface ServerFunctions {
|
|
|
25
22
|
getTransformedBundlerConfigs: () => Promise<BundlerConfig[]>;
|
|
26
23
|
getAppContext: () => Promise<AppContext>;
|
|
27
24
|
getFileSystemRoutes: (entryName: string) => Promise<FileSystemRoutes>;
|
|
28
|
-
getBuilderContext: () => Promise<
|
|
25
|
+
getBuilderContext: () => Promise<RsbuildContext>;
|
|
29
26
|
getDependencies: () => Promise<Record<string, string>>;
|
|
30
27
|
getCompileTimeCost: () => Promise<number>;
|
|
31
28
|
getClientDefinition: () => Promise<ClientDefinition>;
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"modern",
|
|
19
19
|
"modern.js"
|
|
20
20
|
],
|
|
21
|
-
"version": "0.0.0-nightly-
|
|
21
|
+
"version": "0.0.0-nightly-20240106170605",
|
|
22
22
|
"jsnext:source": "./src/index.ts",
|
|
23
23
|
"types": "./dist/index.d.ts",
|
|
24
24
|
"main": "./dist/index.js",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"ufo": "^1.3.0",
|
|
49
49
|
"ws": "^8.13.0",
|
|
50
|
-
"@modern-js/types": "0.0.0-nightly-
|
|
51
|
-
"@modern-js/utils": "0.0.0-nightly-
|
|
50
|
+
"@modern-js/types": "0.0.0-nightly-20240106170605",
|
|
51
|
+
"@modern-js/utils": "0.0.0-nightly-20240106170605"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@swc/helpers": "0.5.3",
|
|
@@ -57,14 +57,12 @@
|
|
|
57
57
|
"react": "~18.2.0",
|
|
58
58
|
"type-fest": "^4.1.0",
|
|
59
59
|
"typescript": "^5",
|
|
60
|
-
"@modern-js/app-tools": "0.0.0-nightly-
|
|
61
|
-
"@modern-js/builder
|
|
62
|
-
"@modern-js/
|
|
63
|
-
"@modern-js/
|
|
64
|
-
"@modern-js/module-tools": "0.0.0-nightly-
|
|
65
|
-
"@
|
|
66
|
-
"@modern-js/builder-shared": "0.0.0-nightly-20240104170621",
|
|
67
|
-
"@scripts/build": "0.0.0-nightly-20240104170621"
|
|
60
|
+
"@modern-js/app-tools": "0.0.0-nightly-20240106170605",
|
|
61
|
+
"@modern-js/uni-builder": "0.0.0-nightly-20240106170605",
|
|
62
|
+
"@modern-js/core": "0.0.0-nightly-20240106170605",
|
|
63
|
+
"@modern-js/types": "0.0.0-nightly-20240106170605",
|
|
64
|
+
"@modern-js/module-tools": "0.0.0-nightly-20240106170605",
|
|
65
|
+
"@scripts/build": "0.0.0-nightly-20240106170605"
|
|
68
66
|
},
|
|
69
67
|
"peerDependencies": {
|
|
70
68
|
"react": "~18.2.0"
|