storybook-builder-rsbuild 0.0.11 → 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
@@ -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
@@ -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.11",
3
+ "version": "0.0.12",
4
4
  "description": "Rsbuild builder for Storybook",
5
5
  "keywords": [
6
6
  "storybook",
@@ -86,7 +86,7 @@
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": {