Skip to content

Commit 90ad04c

Browse files
committed
w
1 parent ce39e7c commit 90ad04c

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

packages/builder-rsbuild/src/preview/iframe-rsbuild.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { dirname, join, resolve } from 'node:path'
22
import { loadConfig, mergeRsbuildConfig, rspack } from '@rsbuild/core'
33
import type { RsbuildConfig, Rspack } from '@rsbuild/core'
44
import { pluginTypeCheck } from '@rsbuild/plugin-type-check'
5-
// import { webpack as docsWebpack } from '@storybook/addon-docs/preset'
65
// @ts-expect-error (I removed this on purpose, because it's incorrect)
76
import CaseSensitivePathsPlugin from 'case-sensitive-paths-webpack-plugin'
87
import { pluginHtmlMinifierTerser } from 'rsbuild-plugin-html-minifier-terser'
@@ -62,6 +61,12 @@ export default async (
6261
const webpackConfigFromPresets =
6362
await options.presets.apply<Rspack.Configuration>('webpack', {}, options)
6463

64+
if (addonDocs) {
65+
console.warn(
66+
'`addonDocs` option is deprecated and will be removed in future versions. Please use `@storybook/addon-docs` option instead.',
67+
)
68+
}
69+
6570
const {
6671
outputDir = join('.', 'public'),
6772
quiet,

tests/helpers/runSandboxInspect.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ async function inspectSandboxOnce(
3535
CI: 'true',
3636
FORCE_COLOR: '0',
3737
},
38+
shell: process.platform === 'win32',
3839
stdio: ['ignore', 'pipe', 'pipe'],
3940
})
4041

vitest-setup.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import { expect, vi } from 'vitest'
55
import { dedent } from 'ts-dedent'
66

77
const ignoreList = [
8+
(error: any) =>
9+
error.message.includes(
10+
'`addonDocs` option is deprecated and will be removed in future versions. Please use `@storybook/addon-docs` option instead.',
11+
),
812
(error: any) => error.message.includes('":nth-child" is potentially unsafe'),
913
(error: any) =>
1014
error.message.includes('":first-child" is potentially unsafe'),

0 commit comments

Comments
 (0)