@modern-js/core 1.17.0 → 1.18.1-alpha.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.
- package/CHANGELOG.md +28 -0
- package/dist/config/defaults.js +1 -0
- package/dist/config/schema/index.d.ts +6 -0
- package/dist/config/schema/server.d.ts +3 -0
- package/dist/config/schema/server.js +1 -0
- package/dist/config/schema/source.d.ts +3 -0
- package/dist/config/schema/source.js +1 -0
- package/dist/config/types/index.d.ts +2 -0
- package/dist/types/cli.d.ts +4 -0
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @modern-js/core
|
|
2
2
|
|
|
3
|
+
## 1.18.1-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [c1a4d9b]
|
|
8
|
+
- Updated dependencies [9fcfbd4]
|
|
9
|
+
- Updated dependencies [6c2c745]
|
|
10
|
+
- @modern-js/plugin@1.18.1-alpha.0
|
|
11
|
+
- @modern-js/utils@1.18.1-alpha.0
|
|
12
|
+
- @modern-js/node-bundle-require@1.18.1-alpha.0
|
|
13
|
+
|
|
14
|
+
## 1.18.0
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 60a2e3a: feat: add compiler option for server
|
|
19
|
+
feat: 为 server 添加编译选项
|
|
20
|
+
- 66ad36f: feat: add source.enableAsyncEntry config
|
|
21
|
+
|
|
22
|
+
feat: 新增 source.enableAsyncEntry 配置项
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [8280920]
|
|
25
|
+
- Updated dependencies [5227370]
|
|
26
|
+
- Updated dependencies [7928bae]
|
|
27
|
+
- @modern-js/utils@1.18.0
|
|
28
|
+
- @modern-js/node-bundle-require@1.18.0
|
|
29
|
+
- @modern-js/plugin@1.18.0
|
|
30
|
+
|
|
3
31
|
## 1.17.0
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
package/dist/config/defaults.js
CHANGED
|
@@ -45,6 +45,9 @@ export declare const patchSchema: (pluginSchemas: Array<PluginValidateSchema | P
|
|
|
45
45
|
alias: {
|
|
46
46
|
typeof: string[];
|
|
47
47
|
};
|
|
48
|
+
enableAsyncEntry: {
|
|
49
|
+
type: string;
|
|
50
|
+
};
|
|
48
51
|
disableDefaultEntries: {
|
|
49
52
|
type: string;
|
|
50
53
|
};
|
|
@@ -400,6 +403,9 @@ export declare const patchSchema: (pluginSchemas: Array<PluginValidateSchema | P
|
|
|
400
403
|
watchOptions: {
|
|
401
404
|
type: string;
|
|
402
405
|
};
|
|
406
|
+
compiler: {
|
|
407
|
+
type: string;
|
|
408
|
+
};
|
|
403
409
|
};
|
|
404
410
|
};
|
|
405
411
|
deploy: {
|
|
@@ -26,6 +26,7 @@ exports.source = {
|
|
|
26
26
|
},
|
|
27
27
|
preEntry: { type: ['string', 'array'] },
|
|
28
28
|
alias: { typeof: ['object', 'function'] },
|
|
29
|
+
enableAsyncEntry: { type: 'boolean' },
|
|
29
30
|
disableDefaultEntries: { type: 'boolean' },
|
|
30
31
|
envVars: { type: 'array' },
|
|
31
32
|
globalVars: { type: 'object' },
|
|
@@ -31,6 +31,7 @@ export interface SourceConfig {
|
|
|
31
31
|
disableMount?: boolean;
|
|
32
32
|
}>;
|
|
33
33
|
preEntry?: string | string[];
|
|
34
|
+
enableAsyncEntry?: boolean;
|
|
34
35
|
disableDefaultEntries?: boolean;
|
|
35
36
|
entriesDir?: string;
|
|
36
37
|
configDir?: string;
|
|
@@ -119,6 +120,7 @@ export interface ServerConfig {
|
|
|
119
120
|
metrics?: boolean | Record<string, any>;
|
|
120
121
|
enableMicroFrontendDebug?: boolean;
|
|
121
122
|
watchOptions?: WatchOptions;
|
|
123
|
+
compiler?: 'babel' | 'typescript';
|
|
122
124
|
}
|
|
123
125
|
export declare type DevProxyOptions = string | Record<string, string>;
|
|
124
126
|
export interface DevConfig {
|
package/dist/types/cli.d.ts
CHANGED
|
@@ -53,6 +53,10 @@ export interface Hooks {
|
|
|
53
53
|
entrypoint: Entrypoint;
|
|
54
54
|
code: string;
|
|
55
55
|
}>;
|
|
56
|
+
modifyAsyncEntry: AsyncWaterfall<{
|
|
57
|
+
entrypoint: Entrypoint;
|
|
58
|
+
code: string;
|
|
59
|
+
}>;
|
|
56
60
|
modifyFileSystemRoutes: AsyncWaterfall<{
|
|
57
61
|
entrypoint: Entrypoint;
|
|
58
62
|
routes: Route[];
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"modern",
|
|
11
11
|
"modern.js"
|
|
12
12
|
],
|
|
13
|
-
"version": "1.
|
|
13
|
+
"version": "1.18.1-alpha.0",
|
|
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.
|
|
42
|
-
"@modern-js/plugin": "1.
|
|
43
|
-
"@modern-js/utils": "1.
|
|
41
|
+
"@modern-js/node-bundle-require": "1.18.1-alpha.0",
|
|
42
|
+
"@modern-js/plugin": "1.18.1-alpha.0",
|
|
43
|
+
"@modern-js/utils": "1.18.1-alpha.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@jest/types": "^27.0.6",
|
|
47
|
-
"@modern-js/babel-preset-app": "1.
|
|
48
|
-
"@modern-js/types": "1.
|
|
49
|
-
"@scripts/build": "1.
|
|
50
|
-
"@scripts/jest-config": "1.
|
|
47
|
+
"@modern-js/babel-preset-app": "1.18.1-alpha.0",
|
|
48
|
+
"@modern-js/types": "1.18.1-alpha.0",
|
|
49
|
+
"@scripts/build": "1.18.1-alpha.0",
|
|
50
|
+
"@scripts/jest-config": "1.18.1-alpha.0",
|
|
51
51
|
"@types/babel__code-frame": "^7.0.3",
|
|
52
52
|
"@types/babel__core": "^7.1.16",
|
|
53
53
|
"@types/jest": "^27",
|