@modern-js/storybook-builder 0.0.0-next-20240320181823 → 0.0.0-next-20240321071730
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,13 +174,12 @@ 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;
|
178
177
|
builderConfig.tools.htmlPlugin = {
|
179
|
-
...
|
178
|
+
...builderConfig.tools.htmlPlugin,
|
180
179
|
template,
|
181
180
|
filename: "iframe.html",
|
182
181
|
templateParameters: {
|
183
|
-
...
|
182
|
+
...builderConfig.tools.htmlPlugin ? builderConfig.tools.htmlPlugin.templateParameters || {} : {},
|
184
183
|
version: packageJson.version || "",
|
185
184
|
globals: {
|
186
185
|
CONFIG_TYPE: configType,
|
@@ -172,15 +172,14 @@ 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;
|
176
175
|
builderConfig.tools.htmlPlugin = {
|
177
|
-
...
|
176
|
+
...builderConfig.tools.htmlPlugin,
|
178
177
|
template,
|
179
178
|
filename: "iframe.html",
|
180
179
|
templateParameters: {
|
181
|
-
...
|
180
|
+
...builderConfig.tools.htmlPlugin ? (
|
182
181
|
// @ts-expect-error
|
183
|
-
|
182
|
+
builderConfig.tools.htmlPlugin.templateParameters || {}
|
184
183
|
) : {},
|
185
184
|
version: packageJson.version || "",
|
186
185
|
globals: {
|
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-20240321071730",
|
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.4.15",
|
55
|
+
"@rsbuild/core": "0.4.15",
|
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-next-
|
77
|
-
"@modern-js/core": "0.0.0-next-
|
78
|
-
"@modern-js/runtime": "0.0.0-next-
|
79
|
-
"@modern-js/utils": "0.0.0-next-
|
76
|
+
"@modern-js/uni-builder": "0.0.0-next-20240321071730",
|
77
|
+
"@modern-js/core": "0.0.0-next-20240321071730",
|
78
|
+
"@modern-js/runtime": "0.0.0-next-20240321071730",
|
79
|
+
"@modern-js/utils": "0.0.0-next-20240321071730"
|
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
|
-
"@
|
88
|
-
"@
|
87
|
+
"@scripts/build": "0.0.0-next-20240321071730",
|
88
|
+
"@modern-js/core": "0.0.0-next-20240321071730"
|
89
89
|
},
|
90
90
|
"publishConfig": {
|
91
91
|
"registry": "https://registry.npmjs.org/",
|