@modern-js/server-core 2.51.1-alpha.0 → 2.52.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.
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
type ArrayOrNot<T> = T | T[];
|
|
2
|
-
export type
|
|
2
|
+
export type ConfigChain<Config, Utils = unknown> = ArrayOrNot<Config | (keyof Utils extends never ? (config: Config) => Config | void : (config: Config, utils: Utils) => Config | void)>;
|
|
3
3
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Alias } from '@modern-js/utils';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ConfigChain } from './share';
|
|
3
3
|
export interface SourceUserConfig {
|
|
4
|
-
alias?:
|
|
4
|
+
alias?: ConfigChain<Alias>;
|
|
5
5
|
}
|
|
6
6
|
export type SourceNormalizedConfig = SourceUserConfig;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BabelTransformOptions } from '@modern-js/types/common';
|
|
2
|
-
import {
|
|
3
|
-
type ToolsBabelConfig =
|
|
2
|
+
import { ConfigChain } from './share';
|
|
3
|
+
type ToolsBabelConfig = ConfigChain<BabelTransformOptions, any>;
|
|
4
4
|
export interface ToolsUserConfig {
|
|
5
5
|
babel?: ToolsBabelConfig;
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.52.0",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
"hono": "^3.12.2",
|
|
70
70
|
"isbot": "3.8.0",
|
|
71
71
|
"merge-deep": "^3.0.3",
|
|
72
|
-
"@modern-js/
|
|
73
|
-
"@modern-js/
|
|
74
|
-
"@modern-js/
|
|
72
|
+
"@modern-js/plugin": "2.52.0",
|
|
73
|
+
"@modern-js/runtime-utils": "2.52.0",
|
|
74
|
+
"@modern-js/utils": "2.52.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@types/jest": "^29",
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
"jest": "^29",
|
|
82
82
|
"ts-jest": "^29.1.0",
|
|
83
83
|
"typescript": "^5",
|
|
84
|
-
"@
|
|
85
|
-
"@
|
|
86
|
-
"@scripts/jest-config": "2.
|
|
84
|
+
"@scripts/build": "2.52.0",
|
|
85
|
+
"@modern-js/types": "2.52.0",
|
|
86
|
+
"@scripts/jest-config": "2.52.0"
|
|
87
87
|
},
|
|
88
88
|
"sideEffects": false,
|
|
89
89
|
"publishConfig": {
|