Support runStep in Vite builder SSv6

This commit is contained in:
Ian VanSchooten 2022-09-22 17:52:00 -04:00
parent 7da06e40f5
commit d93bbe758d

View File

@ -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 :( !');