Skip to content

Commit

Permalink
Ignore applyDecorators in v6 story store (#443)
Browse files Browse the repository at this point in the history
The applyDecorators is an export from frameworks (and can be overridden in preview.js) but is only used in storyStoreV7 mode. The file being updated here is used for the v6 store, which handles decorators a different way, but still ends up reading the export which falls through to the default warning. We can safely ignore it in the case statement.
  • Loading branch information
kvcvc authored Jul 15, 2022
1 parent ee69357 commit baf4d7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/builder-vite/codegen-iframe-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export async function generateIframeScriptCode(options: ExtendedOptions) {
return addParameters(v, false);
}
case 'decorateStory':
case 'applyDecorators':
case 'renderToDOM': {
return null; // This key is not handled directly in v6 mode.
}
Expand Down

0 comments on commit baf4d7d

Please sign in to comment.