@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 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
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaults = void 0;
4
4
  const sourceDefaults = {
5
5
  entries: undefined,
6
+ enableAsyncEntry: false,
6
7
  disableDefaultEntries: false,
7
8
  entriesDir: './src',
8
9
  configDir: './config',
@@ -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: {
@@ -184,5 +184,8 @@ export declare const server: {
184
184
  watchOptions: {
185
185
  type: string;
186
186
  };
187
+ compiler: {
188
+ type: string;
189
+ };
187
190
  };
188
191
  };
@@ -105,5 +105,6 @@ exports.server = {
105
105
  proxy: { type: 'object' },
106
106
  enableMicroFrontendDebug: { type: 'boolean' },
107
107
  watchOptions: { type: 'object' },
108
+ compiler: { type: 'string' },
108
109
  },
109
110
  };
@@ -36,6 +36,9 @@ export declare const source: {
36
36
  alias: {
37
37
  typeof: string[];
38
38
  };
39
+ enableAsyncEntry: {
40
+ type: string;
41
+ };
39
42
  disableDefaultEntries: {
40
43
  type: string;
41
44
  };
@@ -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 {
@@ -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.17.0",
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.17.0",
42
- "@modern-js/plugin": "1.17.0",
43
- "@modern-js/utils": "1.17.0"
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.17.0",
48
- "@modern-js/types": "1.17.0",
49
- "@scripts/build": "1.17.0",
50
- "@scripts/jest-config": "1.17.0",
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",