@modern-js/storybook-builder 0.0.0-next-20231127085256 → 0.0.0-next-20231127105004
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.
@@ -366,18 +366,12 @@ function addonAdapter(api, options) {
|
|
366
366
|
replaceOrInsert(preset, currentPresets);
|
367
367
|
}
|
368
368
|
const finalConfig2 = {
|
369
|
-
...config,
|
370
369
|
...babelOptions,
|
371
370
|
plugins: currentPlugins,
|
372
371
|
presets: currentPresets
|
373
372
|
};
|
374
|
-
if (
|
375
|
-
return
|
376
|
-
} else if (typeof userConfig === "object") {
|
377
|
-
return {
|
378
|
-
...finalConfig2,
|
379
|
-
...userConfig
|
380
|
-
};
|
373
|
+
if (userConfig) {
|
374
|
+
return (0, import_utils.applyOptionsChain)(finalConfig2, userConfig, utils);
|
381
375
|
} else {
|
382
376
|
return finalConfig2;
|
383
377
|
}
|
@@ -387,15 +387,12 @@ function addonAdapter(api, options) {
|
|
387
387
|
replaceOrInsert(preset, currentPresets);
|
388
388
|
}
|
389
389
|
const finalConfig2 = {
|
390
|
-
...config,
|
391
390
|
...babelOptions,
|
392
391
|
plugins: currentPlugins,
|
393
392
|
presets: currentPresets
|
394
393
|
};
|
395
|
-
if (
|
396
|
-
return
|
397
|
-
} else if (typeof userConfig === "object") {
|
398
|
-
return { ...finalConfig2, ...userConfig };
|
394
|
+
if (userConfig) {
|
395
|
+
return applyOptionsChain(finalConfig2, userConfig, utils);
|
399
396
|
} else {
|
400
397
|
return finalConfig2;
|
401
398
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@modern-js/storybook-builder",
|
3
|
-
"version": "0.0.0-next-
|
3
|
+
"version": "0.0.0-next-20231127105004",
|
4
4
|
"description": "modern.js support for storybook",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -71,11 +71,11 @@
|
|
71
71
|
"serve-static": "^1.14.1",
|
72
72
|
"tinypool": "^0.8.0",
|
73
73
|
"webpack-hot-middleware": "^2.25.4",
|
74
|
-
"@modern-js/builder": "0.0.0-next-
|
75
|
-
"@modern-js/
|
76
|
-
"@modern-js/
|
77
|
-
"@modern-js/utils": "0.0.0-next-
|
78
|
-
"@modern-js/
|
74
|
+
"@modern-js/builder": "0.0.0-next-20231127105004",
|
75
|
+
"@modern-js/builder-shared": "0.0.0-next-20231127105004",
|
76
|
+
"@modern-js/core": "0.0.0-next-20231127105004",
|
77
|
+
"@modern-js/utils": "0.0.0-next-20231127105004",
|
78
|
+
"@modern-js/runtime": "0.0.0-next-20231127105004"
|
79
79
|
},
|
80
80
|
"devDependencies": {
|
81
81
|
"@storybook/types": "^7.5.1",
|
@@ -83,14 +83,14 @@
|
|
83
83
|
"@types/serve-static": "^1.13.10",
|
84
84
|
"@types/webpack-hot-middleware": "^2.25.6",
|
85
85
|
"typescript": "^5.2.2",
|
86
|
-
"@modern-js/builder-rspack-provider": "0.0.0-next-
|
87
|
-
"@modern-js/builder-webpack-provider": "0.0.0-next-
|
88
|
-
"@modern-js/core": "0.0.0-next-
|
89
|
-
"@scripts/build": "0.0.0-next-
|
86
|
+
"@modern-js/builder-rspack-provider": "0.0.0-next-20231127105004",
|
87
|
+
"@modern-js/builder-webpack-provider": "0.0.0-next-20231127105004",
|
88
|
+
"@modern-js/core": "0.0.0-next-20231127105004",
|
89
|
+
"@scripts/build": "0.0.0-next-20231127105004"
|
90
90
|
},
|
91
91
|
"peerDependencies": {
|
92
|
-
"@modern-js/builder-webpack-provider": "0.0.0-next-
|
93
|
-
"@modern-js/builder-rspack-provider": "0.0.0-next-
|
92
|
+
"@modern-js/builder-webpack-provider": "0.0.0-next-20231127105004",
|
93
|
+
"@modern-js/builder-rspack-provider": "0.0.0-next-20231127105004"
|
94
94
|
},
|
95
95
|
"peerDependenciesMeta": {
|
96
96
|
"@modern-js/builder-webpack-provider": {
|