@modern-js/storybook-builder 0.0.0-nightly-20240319170712 → 0.0.0-nightly-20240322170642
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.
@@ -174,12 +174,13 @@ async function applyHTML(builderConfig, options) {
|
|
174
174
|
]);
|
175
175
|
var _tools;
|
176
176
|
(_tools = (_builderConfig = builderConfig).tools) !== null && _tools !== void 0 ? _tools : _builderConfig.tools = {};
|
177
|
+
const htmlPluginConfig = typeof builderConfig.tools.htmlPlugin === "boolean" ? {} : builderConfig.tools.htmlPlugin;
|
177
178
|
builderConfig.tools.htmlPlugin = {
|
178
|
-
...
|
179
|
+
...htmlPluginConfig,
|
179
180
|
template,
|
180
181
|
filename: "iframe.html",
|
181
182
|
templateParameters: {
|
182
|
-
...
|
183
|
+
...htmlPluginConfig ? htmlPluginConfig.templateParameters || {} : {},
|
183
184
|
version: packageJson.version || "",
|
184
185
|
globals: {
|
185
186
|
CONFIG_TYPE: configType,
|
@@ -172,14 +172,15 @@ async function applyHTML(builderConfig, options) {
|
|
172
172
|
presets.apply("docs")
|
173
173
|
]);
|
174
174
|
(_a = builderConfig.tools) != null ? _a : builderConfig.tools = {};
|
175
|
+
const htmlPluginConfig = typeof builderConfig.tools.htmlPlugin === "boolean" ? {} : builderConfig.tools.htmlPlugin;
|
175
176
|
builderConfig.tools.htmlPlugin = {
|
176
|
-
...
|
177
|
+
...htmlPluginConfig,
|
177
178
|
template,
|
178
179
|
filename: "iframe.html",
|
179
180
|
templateParameters: {
|
180
|
-
...
|
181
|
+
...htmlPluginConfig ? (
|
181
182
|
// @ts-expect-error
|
182
|
-
|
183
|
+
htmlPluginConfig.templateParameters || {}
|
183
184
|
) : {},
|
184
185
|
version: packageJson.version || "",
|
185
186
|
globals: {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@modern-js/storybook-builder",
|
3
|
-
"version": "0.0.0-nightly-
|
3
|
+
"version": "0.0.0-nightly-20240322170642",
|
4
4
|
"description": "modern.js support for storybook",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -51,8 +51,8 @@
|
|
51
51
|
},
|
52
52
|
"license": "MIT",
|
53
53
|
"dependencies": {
|
54
|
-
"@rsbuild/shared": "0.
|
55
|
-
"@rsbuild/core": "0.
|
54
|
+
"@rsbuild/shared": "0.5.2",
|
55
|
+
"@rsbuild/core": "0.5.2",
|
56
56
|
"@rspack/plugin-react-refresh": "0.4.5",
|
57
57
|
"@storybook/components": "~7.6.12",
|
58
58
|
"@storybook/core-common": "~7.6.12",
|
@@ -73,10 +73,10 @@
|
|
73
73
|
"serve-static": "^1.14.1",
|
74
74
|
"tinypool": "^0.8.0",
|
75
75
|
"webpack-hot-middleware": "^2.25.4",
|
76
|
-
"@modern-js/uni-builder": "0.0.0-nightly-
|
77
|
-
"@modern-js/core": "0.0.0-nightly-
|
78
|
-
"@modern-js/
|
79
|
-
"@modern-js/
|
76
|
+
"@modern-js/uni-builder": "0.0.0-nightly-20240322170642",
|
77
|
+
"@modern-js/core": "0.0.0-nightly-20240322170642",
|
78
|
+
"@modern-js/runtime": "0.0.0-nightly-20240322170642",
|
79
|
+
"@modern-js/utils": "0.0.0-nightly-20240322170642"
|
80
80
|
},
|
81
81
|
"devDependencies": {
|
82
82
|
"@storybook/types": "~7.6.12",
|
@@ -84,8 +84,8 @@
|
|
84
84
|
"@types/serve-static": "^1.13.10",
|
85
85
|
"@types/webpack-hot-middleware": "^2.25.6",
|
86
86
|
"typescript": "^5.2.2",
|
87
|
-
"@modern-js/core": "0.0.0-nightly-
|
88
|
-
"@scripts/build": "0.0.0-nightly-
|
87
|
+
"@modern-js/core": "0.0.0-nightly-20240322170642",
|
88
|
+
"@scripts/build": "0.0.0-nightly-20240322170642"
|
89
89
|
},
|
90
90
|
"publishConfig": {
|
91
91
|
"registry": "https://registry.npmjs.org/",
|