@modern-js/core 2.32.2-alpha.1 → 2.33.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/dist/types/config/index.d.ts +2 -2
- package/dist/types/plugin.d.ts +6 -10
- package/package.json +8 -8
- package/CHANGELOG.md +0 -2183
|
@@ -6,7 +6,7 @@ export type UserConfig<Extends extends {
|
|
|
6
6
|
} = {}, ExtendHooks extends Record<string, any> = {}, ExtendUserConfig extends {
|
|
7
7
|
[property: string]: any;
|
|
8
8
|
} = {}, ExtendNormalizedConfig extends Record<string, any> = {}> = {
|
|
9
|
-
plugins?: PluginConfig
|
|
9
|
+
plugins?: PluginConfig;
|
|
10
10
|
/**
|
|
11
11
|
* auto load plugin that exist in the package.json
|
|
12
12
|
*
|
|
@@ -21,7 +21,7 @@ export type NormalizedConfig<Extends extends {
|
|
|
21
21
|
} = {}, ExtendHooks extends Record<string, any> = {}, ExtendUserConfig extends Record<string, any> = {}, ExtendNormalizedConfig extends {
|
|
22
22
|
[property: string]: any;
|
|
23
23
|
} = {}> = {
|
|
24
|
-
plugins: PluginConfig
|
|
24
|
+
plugins: PluginConfig;
|
|
25
25
|
/**
|
|
26
26
|
* Auto load plugin that exist in the package.json
|
|
27
27
|
*
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -14,13 +14,9 @@ export type PluginItem = string | [string, any];
|
|
|
14
14
|
* Using NewPluginConfig instead.
|
|
15
15
|
*/
|
|
16
16
|
export type OldPluginConfig = Array<PluginItem>;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export type PluginConfig
|
|
23
|
-
hooks?: Record<string, any>;
|
|
24
|
-
userConfig?: Record<string, any>;
|
|
25
|
-
normalizedConfig?: Record<string, any>;
|
|
26
|
-
} = {}> = OldPluginConfig | NewPluginConfig<PluginTypes>;
|
|
17
|
+
/**
|
|
18
|
+
* The type of PluginOptions is looser than the actual type,
|
|
19
|
+
* this avoids potential type mismatch issues when using different version plugins.
|
|
20
|
+
*/
|
|
21
|
+
export type NewPluginConfig = PluginOptions<any, (...args: any[]) => void>[];
|
|
22
|
+
export type PluginConfig = OldPluginConfig | NewPluginConfig;
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"modern",
|
|
15
15
|
"modern.js"
|
|
16
16
|
],
|
|
17
|
-
"version": "2.
|
|
17
|
+
"version": "2.33.1",
|
|
18
18
|
"jsnext:source": "./src/index.ts",
|
|
19
19
|
"types": "./dist/index.d.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@swc/helpers": "0.5.1",
|
|
74
|
-
"@modern-js/node-bundle-require": "2.
|
|
75
|
-
"@modern-js/plugin": "2.
|
|
76
|
-
"@modern-js/utils": "2.
|
|
74
|
+
"@modern-js/node-bundle-require": "2.33.1",
|
|
75
|
+
"@modern-js/plugin": "2.33.1",
|
|
76
|
+
"@modern-js/utils": "2.33.1"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@types/jest": "^29",
|
|
@@ -81,10 +81,10 @@
|
|
|
81
81
|
"tsm": "2.3.0",
|
|
82
82
|
"jest": "^29",
|
|
83
83
|
"typescript": "^5",
|
|
84
|
-
"@modern-js/builder-shared": "2.
|
|
85
|
-
"@modern-js/types": "2.
|
|
86
|
-
"@scripts/
|
|
87
|
-
"@scripts/
|
|
84
|
+
"@modern-js/builder-shared": "2.33.1",
|
|
85
|
+
"@modern-js/types": "2.33.1",
|
|
86
|
+
"@scripts/build": "2.33.1",
|
|
87
|
+
"@scripts/jest-config": "2.33.1"
|
|
88
88
|
},
|
|
89
89
|
"sideEffects": false,
|
|
90
90
|
"publishConfig": {
|