@modern-js/plugin 3.0.3 → 3.0.4
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.
|
@@ -171,8 +171,11 @@ const createStorybookOptions = async (options)=>{
|
|
|
171
171
|
const extraConfigs = await context.hooks.config.call();
|
|
172
172
|
const normalizedConfig = await (0, createResolvedConfig_js_namespaceObject.createResolveConfig)(loaded, extraConfigs);
|
|
173
173
|
const resolved = await context.hooks.modifyResolvedConfig.call(normalizedConfig);
|
|
174
|
+
const finalConfig = resolved || normalizedConfig;
|
|
175
|
+
context.normalizedConfig = finalConfig;
|
|
176
|
+
await pluginAPI.updateAppContext(context);
|
|
174
177
|
return {
|
|
175
|
-
config:
|
|
178
|
+
config: finalConfig,
|
|
176
179
|
getAppContext: ()=>pluginAPI.getAppContext()
|
|
177
180
|
};
|
|
178
181
|
};
|
|
@@ -142,8 +142,11 @@ const createStorybookOptions = async (options)=>{
|
|
|
142
142
|
const extraConfigs = await context.hooks.config.call();
|
|
143
143
|
const normalizedConfig = await createResolveConfig(loaded, extraConfigs);
|
|
144
144
|
const resolved = await context.hooks.modifyResolvedConfig.call(normalizedConfig);
|
|
145
|
+
const finalConfig = resolved || normalizedConfig;
|
|
146
|
+
context.normalizedConfig = finalConfig;
|
|
147
|
+
await pluginAPI.updateAppContext(context);
|
|
145
148
|
return {
|
|
146
|
-
config:
|
|
149
|
+
config: finalConfig,
|
|
147
150
|
getAppContext: ()=>pluginAPI.getAppContext()
|
|
148
151
|
};
|
|
149
152
|
};
|
|
@@ -143,8 +143,11 @@ const createStorybookOptions = async (options)=>{
|
|
|
143
143
|
const extraConfigs = await context.hooks.config.call();
|
|
144
144
|
const normalizedConfig = await createResolveConfig(loaded, extraConfigs);
|
|
145
145
|
const resolved = await context.hooks.modifyResolvedConfig.call(normalizedConfig);
|
|
146
|
+
const finalConfig = resolved || normalizedConfig;
|
|
147
|
+
context.normalizedConfig = finalConfig;
|
|
148
|
+
await pluginAPI.updateAppContext(context);
|
|
146
149
|
return {
|
|
147
|
-
config:
|
|
150
|
+
config: finalConfig,
|
|
148
151
|
getAppContext: ()=>pluginAPI.getAppContext()
|
|
149
152
|
};
|
|
150
153
|
};
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.0.
|
|
18
|
+
"version": "3.0.4",
|
|
19
19
|
"types": "./dist/types/index.d.ts",
|
|
20
20
|
"main": "./dist/cjs/index.js",
|
|
21
21
|
"exports": {
|
|
@@ -85,16 +85,16 @@
|
|
|
85
85
|
"@rsbuild/core": "2.0.0-beta.4",
|
|
86
86
|
"@swc/helpers": "^0.5.17",
|
|
87
87
|
"jiti": "^2.6.1",
|
|
88
|
-
"@modern-js/runtime-utils": "3.0.
|
|
89
|
-
"@modern-js/types": "3.0.
|
|
90
|
-
"@modern-js/utils": "3.0.
|
|
88
|
+
"@modern-js/runtime-utils": "3.0.4",
|
|
89
|
+
"@modern-js/types": "3.0.4",
|
|
90
|
+
"@modern-js/utils": "3.0.4"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@rslib/core": "0.19.6",
|
|
94
94
|
"@types/node": "^20",
|
|
95
95
|
"@types/react": "^19.2.14",
|
|
96
96
|
"typescript": "^5",
|
|
97
|
-
"@modern-js/builder": "3.0.
|
|
97
|
+
"@modern-js/builder": "3.0.4",
|
|
98
98
|
"@modern-js/rslib": "2.68.10"
|
|
99
99
|
},
|
|
100
100
|
"sideEffects": false,
|