storybook-builder-rsbuild 0.0.11 → 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 +10 -4
- package/dist/index.mjs +10 -4
- package/package.json +2 -2
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,11 +431,14 @@ 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
|
+
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
|
-
assetPrefix: "",
|
438
442
|
progressBar: !quiet
|
439
443
|
},
|
440
444
|
source: {
|
@@ -489,8 +493,10 @@ var iframe_rsbuild_config_default = async (options) => {
|
|
489
493
|
config.watchOptions = {
|
490
494
|
ignored: /node_modules/
|
491
495
|
};
|
492
|
-
|
493
|
-
|
496
|
+
if (!isProd) {
|
497
|
+
config.output = config.output || {};
|
498
|
+
config.output.publicPath = "";
|
499
|
+
}
|
494
500
|
config.ignoreWarnings = [
|
495
501
|
...config.ignoreWarnings || [],
|
496
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,11 +374,14 @@ 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
|
+
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
|
-
assetPrefix: "",
|
381
385
|
progressBar: !quiet
|
382
386
|
},
|
383
387
|
source: {
|
@@ -434,8 +438,10 @@ var iframe_rsbuild_config_default = async (options) => {
|
|
434
438
|
config.watchOptions = {
|
435
439
|
ignored: /node_modules/
|
436
440
|
};
|
437
|
-
|
438
|
-
|
441
|
+
if (!isProd) {
|
442
|
+
config.output = config.output || {};
|
443
|
+
config.output.publicPath = "";
|
444
|
+
}
|
439
445
|
config.ignoreWarnings = [
|
440
446
|
...config.ignoreWarnings || [],
|
441
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.
|
3
|
+
"version": "0.0.13",
|
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.
|
89
|
+
"storybook": "8.2.8",
|
90
90
|
"typescript": "^5.3.2"
|
91
91
|
},
|
92
92
|
"peerDependencies": {
|