mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 22:21:27 +08:00
Support runStep in Vite builder SSv6
This commit is contained in:
parent
7da06e40f5
commit
d93bbe758d
@ -41,6 +41,7 @@ export async function generateIframeScriptCode(options: ExtendedOptions) {
|
||||
addLoader,
|
||||
addArgs,
|
||||
addArgTypes,
|
||||
addStepRunner,
|
||||
addArgTypesEnhancer,
|
||||
addArgsEnhancer,
|
||||
setGlobalRender,
|
||||
@ -89,6 +90,9 @@ export async function generateIframeScriptCode(options: ExtendedOptions) {
|
||||
case 'renderToDOM': {
|
||||
return null; // This key is not handled directly in v6 mode.
|
||||
}
|
||||
case 'runStep': {
|
||||
return addStepRunner(value);
|
||||
}
|
||||
default: {
|
||||
// eslint-disable-next-line prefer-template
|
||||
return console.log(key + ' was not supported :( !');
|
||||
|
Loading…
x
Reference in New Issue
Block a user