storybook-builder-rsbuild 0.0.10 → 0.0.12

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
@@ -433,6 +433,11 @@ var iframe_rsbuild_config_default = async (options) => {
433
433
  assetPrefix: "/",
434
434
  externals
435
435
  },
436
+ server: {
437
+ // Storybook will handle public directory itself, disable Rsbuild's public dir
438
+ // feature to prevent overwriting Storybook's public directory.
439
+ publicDir: false
440
+ },
436
441
  dev: {
437
442
  assetPrefix: "",
438
443
  progressBar: !quiet
@@ -463,14 +468,14 @@ var iframe_rsbuild_config_default = async (options) => {
463
468
  },
464
469
  plugins: [
465
470
  shouldCheckTs ? (0, import_plugin_type_check.pluginTypeCheck)(tsCheckOptions) : null,
466
- (0, import_rsbuild_plugin_html_minifier_terser.pluginHtmlMinifierTerser)({
471
+ (0, import_rsbuild_plugin_html_minifier_terser.pluginHtmlMinifierTerser)(() => ({
467
472
  collapseWhitespace: true,
468
473
  removeComments: true,
469
474
  removeRedundantAttributes: true,
470
475
  removeScriptTypeAttributes: false,
471
476
  removeStyleLinkTypeAttributes: true,
472
477
  useShortDoctype: true
473
- })
478
+ }))
474
479
  ].filter(Boolean),
475
480
  tools: {
476
481
  rspack: (config, { addRules, appendPlugins, rspack, mergeConfig }) => {
@@ -489,8 +494,6 @@ var iframe_rsbuild_config_default = async (options) => {
489
494
  config.watchOptions = {
490
495
  ignored: /node_modules/
491
496
  };
492
- config.output = config.output || {};
493
- config.output.publicPath = "";
494
497
  config.ignoreWarnings = [
495
498
  ...config.ignoreWarnings || [],
496
499
  /export '\S+' was not found in 'global'/,
package/dist/index.mjs CHANGED
@@ -376,6 +376,11 @@ var iframe_rsbuild_config_default = async (options) => {
376
376
  assetPrefix: "/",
377
377
  externals
378
378
  },
379
+ server: {
380
+ // Storybook will handle public directory itself, disable Rsbuild's public dir
381
+ // feature to prevent overwriting Storybook's public directory.
382
+ publicDir: false
383
+ },
379
384
  dev: {
380
385
  assetPrefix: "",
381
386
  progressBar: !quiet
@@ -406,14 +411,14 @@ var iframe_rsbuild_config_default = async (options) => {
406
411
  },
407
412
  plugins: [
408
413
  shouldCheckTs ? pluginTypeCheck(tsCheckOptions) : null,
409
- pluginHtmlMinifierTerser({
414
+ pluginHtmlMinifierTerser(() => ({
410
415
  collapseWhitespace: true,
411
416
  removeComments: true,
412
417
  removeRedundantAttributes: true,
413
418
  removeScriptTypeAttributes: false,
414
419
  removeStyleLinkTypeAttributes: true,
415
420
  useShortDoctype: true
416
- })
421
+ }))
417
422
  ].filter(Boolean),
418
423
  tools: {
419
424
  rspack: (config, { addRules, appendPlugins, rspack, mergeConfig }) => {
@@ -434,8 +439,6 @@ var iframe_rsbuild_config_default = async (options) => {
434
439
  config.watchOptions = {
435
440
  ignored: /node_modules/
436
441
  };
437
- config.output = config.output || {};
438
- config.output.publicPath = "";
439
442
  config.ignoreWarnings = [
440
443
  ...config.ignoreWarnings || [],
441
444
  /export '\S+' was not found in 'global'/,
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.12",
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",
@@ -86,11 +86,11 @@
86
86
  "add": "^2.0.6",
87
87
  "pretty-hrtime": "^1.0.3",
88
88
  "slash": "^5.0.0",
89
- "storybook": "8.2.1",
89
+ "storybook": "8.2.8",
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": {