@modern-js/core 1.18.1-alpha.0 → 1.18.1
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/CHANGELOG.md +8 -4
- package/dist/config/types/index.d.ts +2 -14
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
# @modern-js/core
|
|
2
2
|
|
|
3
|
-
## 1.18.1
|
|
3
|
+
## 1.18.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
+
- 318e149: fix: tools.devServer type missing some properties
|
|
8
|
+
|
|
9
|
+
fix: 修复 tools.devServer 类型定义不完整的问题
|
|
10
|
+
|
|
7
11
|
- Updated dependencies [c1a4d9b]
|
|
8
12
|
- Updated dependencies [9fcfbd4]
|
|
9
13
|
- Updated dependencies [6c2c745]
|
|
10
|
-
- @modern-js/plugin@1.18.1
|
|
11
|
-
- @modern-js/utils@1.18.1
|
|
12
|
-
- @modern-js/node-bundle-require@1.18.1
|
|
14
|
+
- @modern-js/plugin@1.18.1
|
|
15
|
+
- @modern-js/utils@1.18.1
|
|
16
|
+
- @modern-js/node-bundle-require@1.18.1
|
|
13
17
|
|
|
14
18
|
## 1.18.0
|
|
15
19
|
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import type { IncomingMessage, ServerResponse } from 'http';
|
|
3
|
-
import type { NextFunction, BffProxyOptions } from '@modern-js/types';
|
|
1
|
+
import type { DevServerOptions } from '@modern-js/types';
|
|
4
2
|
import type { MetaOptions, ChainIdentifier, WatchOptions } from '@modern-js/utils';
|
|
5
3
|
import type { BabelConfig } from '@modern-js/babel-preset-app';
|
|
6
4
|
import type webpack from 'webpack';
|
|
@@ -150,16 +148,6 @@ export interface DeployConfig {
|
|
|
150
148
|
domainByEntries?: Record<string, string | Array<string>>;
|
|
151
149
|
}
|
|
152
150
|
declare type ConfigFunction = Record<string, unknown> | ((config: Record<string, unknown>, utils?: any) => Record<string, unknown> | void);
|
|
153
|
-
export declare type RequestHandler = (req: IncomingMessage, res: ServerResponse, next: NextFunction) => void;
|
|
154
|
-
export declare type DevServerConfig = {
|
|
155
|
-
hot?: boolean;
|
|
156
|
-
liveReload?: boolean;
|
|
157
|
-
proxy?: BffProxyOptions;
|
|
158
|
-
headers?: Record<string, string>;
|
|
159
|
-
before?: RequestHandler[];
|
|
160
|
-
after?: RequestHandler[];
|
|
161
|
-
[propsName: string]: any;
|
|
162
|
-
};
|
|
163
151
|
export declare type PostCSSConfigUtils = {
|
|
164
152
|
addPlugins: (plugins: PostCSSPlugin | PostCSSPlugin[]) => void;
|
|
165
153
|
};
|
|
@@ -200,7 +188,7 @@ export interface ToolsConfig {
|
|
|
200
188
|
postcss?: PostCSSConfig;
|
|
201
189
|
styledComponents?: ConfigFunction;
|
|
202
190
|
lodash?: ConfigFunction;
|
|
203
|
-
devServer?:
|
|
191
|
+
devServer?: DevServerOptions;
|
|
204
192
|
tsLoader?: TsLoaderConfig;
|
|
205
193
|
terser?: TerserConfig;
|
|
206
194
|
minifyCss?: ConfigFunction;
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"modern",
|
|
11
11
|
"modern.js"
|
|
12
12
|
],
|
|
13
|
-
"version": "1.18.1
|
|
13
|
+
"version": "1.18.1",
|
|
14
14
|
"jsnext:source": "./src/index.ts",
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"main": "./dist/index.js",
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@modern-js/node-bundle-require": "1.18.1
|
|
42
|
-
"@modern-js/plugin": "1.18.1
|
|
43
|
-
"@modern-js/utils": "1.18.1
|
|
41
|
+
"@modern-js/node-bundle-require": "1.18.1",
|
|
42
|
+
"@modern-js/plugin": "1.18.1",
|
|
43
|
+
"@modern-js/utils": "1.18.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@jest/types": "^27.0.6",
|
|
47
|
-
"@modern-js/babel-preset-app": "1.18.1
|
|
48
|
-
"@modern-js/types": "1.18.1
|
|
49
|
-
"@scripts/build": "1.18.1
|
|
50
|
-
"@scripts/jest-config": "1.18.1
|
|
47
|
+
"@modern-js/babel-preset-app": "1.18.1",
|
|
48
|
+
"@modern-js/types": "1.18.1",
|
|
49
|
+
"@scripts/build": "1.18.1",
|
|
50
|
+
"@scripts/jest-config": "1.18.1",
|
|
51
51
|
"@types/babel__code-frame": "^7.0.3",
|
|
52
52
|
"@types/babel__core": "^7.1.16",
|
|
53
53
|
"@types/jest": "^27",
|