storybook-builder-rsbuild 2.1.3 → 2.1.4
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 +4 -3
- package/dist/index.mjs +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -392,7 +392,7 @@ var iframe_rsbuild_config_default = async (options, extraWebpackConfig) => {
|
|
|
392
392
|
}))
|
|
393
393
|
].filter(Boolean),
|
|
394
394
|
tools: {
|
|
395
|
-
rspack: (config, { addRules,
|
|
395
|
+
rspack: (config, { addRules, rspack: rspack2, mergeConfig }) => {
|
|
396
396
|
addRules({
|
|
397
397
|
test: /\.stories\.([tj])sx?$|(stories|story)\.mdx$/,
|
|
398
398
|
exclude: /node_modules/,
|
|
@@ -446,8 +446,9 @@ var iframe_rsbuild_config_default = async (options, extraWebpackConfig) => {
|
|
|
446
446
|
"rspack.experiments.VirtualModulesPlugin requires at least 1.5.0 version of @rsbuild/core, please upgrade or downgrade storybook-rsbuild-builder to lower version."
|
|
447
447
|
);
|
|
448
448
|
}
|
|
449
|
-
|
|
450
|
-
|
|
449
|
+
config.plugins ??= [];
|
|
450
|
+
config.plugins.push(
|
|
451
|
+
...[
|
|
451
452
|
Object.keys(virtualModuleMapping).length > 0 ? new rspack2.experiments.VirtualModulesPlugin(
|
|
452
453
|
virtualModuleMapping
|
|
453
454
|
) : null,
|
package/dist/index.mjs
CHANGED
|
@@ -341,7 +341,7 @@ var iframe_rsbuild_config_default = async (options, extraWebpackConfig) => {
|
|
|
341
341
|
}))
|
|
342
342
|
].filter(Boolean),
|
|
343
343
|
tools: {
|
|
344
|
-
rspack: (config, { addRules,
|
|
344
|
+
rspack: (config, { addRules, rspack: rspack2, mergeConfig }) => {
|
|
345
345
|
addRules({
|
|
346
346
|
test: /\.stories\.([tj])sx?$|(stories|story)\.mdx$/,
|
|
347
347
|
exclude: /node_modules/,
|
|
@@ -397,8 +397,9 @@ var iframe_rsbuild_config_default = async (options, extraWebpackConfig) => {
|
|
|
397
397
|
"rspack.experiments.VirtualModulesPlugin requires at least 1.5.0 version of @rsbuild/core, please upgrade or downgrade storybook-rsbuild-builder to lower version."
|
|
398
398
|
);
|
|
399
399
|
}
|
|
400
|
-
|
|
401
|
-
|
|
400
|
+
config.plugins ??= [];
|
|
401
|
+
config.plugins.push(
|
|
402
|
+
...[
|
|
402
403
|
Object.keys(virtualModuleMapping).length > 0 ? new rspack2.experiments.VirtualModulesPlugin(
|
|
403
404
|
virtualModuleMapping
|
|
404
405
|
) : null,
|