storybook-builder-rsbuild 0.0.10 → 0.0.11

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/index.js CHANGED
@@ -463,14 +463,14 @@ var iframe_rsbuild_config_default = async (options) => {
463
463
  },
464
464
  plugins: [
465
465
  shouldCheckTs ? (0, import_plugin_type_check.pluginTypeCheck)(tsCheckOptions) : null,
466
- (0, import_rsbuild_plugin_html_minifier_terser.pluginHtmlMinifierTerser)({
466
+ (0, import_rsbuild_plugin_html_minifier_terser.pluginHtmlMinifierTerser)(() => ({
467
467
  collapseWhitespace: true,
468
468
  removeComments: true,
469
469
  removeRedundantAttributes: true,
470
470
  removeScriptTypeAttributes: false,
471
471
  removeStyleLinkTypeAttributes: true,
472
472
  useShortDoctype: true
473
- })
473
+ }))
474
474
  ].filter(Boolean),
475
475
  tools: {
476
476
  rspack: (config, { addRules, appendPlugins, rspack, mergeConfig }) => {
package/dist/index.mjs CHANGED
@@ -406,14 +406,14 @@ var iframe_rsbuild_config_default = async (options) => {
406
406
  },
407
407
  plugins: [
408
408
  shouldCheckTs ? pluginTypeCheck(tsCheckOptions) : null,
409
- pluginHtmlMinifierTerser({
409
+ pluginHtmlMinifierTerser(() => ({
410
410
  collapseWhitespace: true,
411
411
  removeComments: true,
412
412
  removeRedundantAttributes: true,
413
413
  removeScriptTypeAttributes: false,
414
414
  removeStyleLinkTypeAttributes: true,
415
415
  useShortDoctype: true
416
- })
416
+ }))
417
417
  ].filter(Boolean),
418
418
  tools: {
419
419
  rspack: (config, { addRules, appendPlugins, rspack, mergeConfig }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storybook-builder-rsbuild",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "Rsbuild builder for Storybook",
5
5
  "keywords": [
6
6
  "storybook",
@@ -56,7 +56,7 @@
56
56
  "!src/**/*"
57
57
  ],
58
58
  "dependencies": {
59
- "@rsbuild/plugin-type-check": "1.0.1-beta.0",
59
+ "@rsbuild/plugin-type-check": "1.0.1-beta.10",
60
60
  "@storybook/addon-docs": "^8.2.1",
61
61
  "@storybook/core-webpack": "^8.2.1",
62
62
  "browser-assert": "^1.2.1",
@@ -78,7 +78,7 @@
78
78
  "util-deprecate": "^1.0.2"
79
79
  },
80
80
  "devDependencies": {
81
- "@rsbuild/core": "1.0.1-beta.0",
81
+ "@rsbuild/core": "1.0.1-beta.10",
82
82
  "@types/express": "^4.17.21",
83
83
  "@types/fs-extra": "^11.0.4",
84
84
  "@types/node": "^18.0.0",
@@ -90,7 +90,7 @@
90
90
  "typescript": "^5.3.2"
91
91
  },
92
92
  "peerDependencies": {
93
- "@rsbuild/core": ">= 1.0.0-alpha.9",
93
+ "@rsbuild/core": ">= 1.0.0-alpha.9 || >= 1.0.1-beta || 1.x",
94
94
  "storybook": "^8.2.1"
95
95
  },
96
96
  "peerDependenciesMeta": {