@modern-js/core 1.13.0 → 1.13.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @modern-js/core
2
2
 
3
+ ## 1.13.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 9d60891: feat(webpack): support source.preEntry config
8
+
9
+ feat(webpack): 新增 source.preEntry 配置项
10
+
11
+ - 5876e63: fix: the SSG callback is called once for each baseUrl, when a user configures multiple baseUrl.
12
+ fix: 当用户配置了多个 baseUrl 时,将会为每个 baseUrl 调用一次 SSG 回调函数。
13
+ - Updated dependencies [4fc801f]
14
+ - Updated dependencies [c8614b8]
15
+ - @modern-js/utils@1.8.0
16
+
3
17
  ## 1.13.0
4
18
 
5
19
  ### Minor Changes
@@ -39,6 +39,9 @@ export declare const patchSchema: (pluginSchemas: Array<PluginValidateSchema | P
39
39
  };
40
40
  };
41
41
  };
42
+ preEntry: {
43
+ type: string[];
44
+ };
42
45
  alias: {
43
46
  typeof: string[];
44
47
  };
@@ -30,6 +30,9 @@ export declare const source: {
30
30
  };
31
31
  };
32
32
  };
33
+ preEntry: {
34
+ type: string[];
35
+ };
33
36
  alias: {
34
37
  typeof: string[];
35
38
  };
@@ -24,6 +24,7 @@ exports.source = {
24
24
  },
25
25
  },
26
26
  },
27
+ preEntry: { type: ['string', 'array'] },
27
28
  alias: { typeof: ['object', 'function'] },
28
29
  disableDefaultEntries: { type: 'boolean' },
29
30
  envVars: { type: 'array' },
@@ -29,6 +29,7 @@ export interface SourceConfig {
29
29
  enableFileSystemRoutes?: boolean;
30
30
  disableMount?: boolean;
31
31
  }>;
32
+ preEntry?: string | string[];
32
33
  disableDefaultEntries?: boolean;
33
34
  entriesDir?: string;
34
35
  configDir?: string;
@@ -10,4 +10,6 @@ export declare type SSGSingleEntryOptions = boolean | {
10
10
  routes?: SSGRouteOptions[];
11
11
  };
12
12
  export declare type SSGMultiEntryOptions = Record<string, SSGSingleEntryOptions>;
13
- export declare type SSGConfig = boolean | SSGSingleEntryOptions | SSGMultiEntryOptions | ((entryName: string) => SSGSingleEntryOptions);
13
+ export declare type SSGConfig = boolean | SSGSingleEntryOptions | SSGMultiEntryOptions | ((entryName: string, payload: {
14
+ baseUrl?: string;
15
+ }) => SSGSingleEntryOptions);
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.13.0",
14
+ "version": "1.13.1",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/index.d.ts",
17
17
  "main": "./dist/index.js",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@modern-js/plugin": "^1.4.2",
43
- "@modern-js/utils": "^1.7.12",
43
+ "@modern-js/utils": "^1.8.0",
44
44
  "@modern-js/node-bundle-require": "^1.3.7"
45
45
  },
46
46
  "devDependencies": {