storybook-builder-rsbuild 0.0.12 → 0.0.13

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
@@ -414,6 +414,7 @@ var iframe_rsbuild_config_default = async (options) => {
414
414
  const merged = (0, import_core.mergeRsbuildConfig)(contentFromConfig, {
415
415
  output: {
416
416
  cleanDistPath: false,
417
+ assetPrefix: "/",
417
418
  dataUriLimit: {
418
419
  media: 1e4
419
420
  },
@@ -430,7 +431,6 @@ var iframe_rsbuild_config_default = async (options) => {
430
431
  font: resourceFilename,
431
432
  media: resourceFilename
432
433
  },
433
- assetPrefix: "/",
434
434
  externals
435
435
  },
436
436
  server: {
@@ -439,7 +439,6 @@ var iframe_rsbuild_config_default = async (options) => {
439
439
  publicDir: false
440
440
  },
441
441
  dev: {
442
- assetPrefix: "",
443
442
  progressBar: !quiet
444
443
  },
445
444
  source: {
@@ -494,6 +493,10 @@ var iframe_rsbuild_config_default = async (options) => {
494
493
  config.watchOptions = {
495
494
  ignored: /node_modules/
496
495
  };
496
+ if (!isProd) {
497
+ config.output = config.output || {};
498
+ config.output.publicPath = "";
499
+ }
497
500
  config.ignoreWarnings = [
498
501
  ...config.ignoreWarnings || [],
499
502
  /export '\S+' was not found in 'global'/,
package/dist/index.mjs CHANGED
@@ -357,6 +357,7 @@ var iframe_rsbuild_config_default = async (options) => {
357
357
  const merged = mergeRsbuildConfig(contentFromConfig, {
358
358
  output: {
359
359
  cleanDistPath: false,
360
+ assetPrefix: "/",
360
361
  dataUriLimit: {
361
362
  media: 1e4
362
363
  },
@@ -373,7 +374,6 @@ var iframe_rsbuild_config_default = async (options) => {
373
374
  font: resourceFilename,
374
375
  media: resourceFilename
375
376
  },
376
- assetPrefix: "/",
377
377
  externals
378
378
  },
379
379
  server: {
@@ -382,7 +382,6 @@ var iframe_rsbuild_config_default = async (options) => {
382
382
  publicDir: false
383
383
  },
384
384
  dev: {
385
- assetPrefix: "",
386
385
  progressBar: !quiet
387
386
  },
388
387
  source: {
@@ -439,6 +438,10 @@ var iframe_rsbuild_config_default = async (options) => {
439
438
  config.watchOptions = {
440
439
  ignored: /node_modules/
441
440
  };
441
+ if (!isProd) {
442
+ config.output = config.output || {};
443
+ config.output.publicPath = "";
444
+ }
442
445
  config.ignoreWarnings = [
443
446
  ...config.ignoreWarnings || [],
444
447
  /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.12",
3
+ "version": "0.0.13",
4
4
  "description": "Rsbuild builder for Storybook",
5
5
  "keywords": [
6
6
  "storybook",