Update code/lib/builder-webpack5/src/preview/iframe-webpack.config.ts

This commit is contained in:
Tom Coleman 2022-10-25 14:39:14 +11:00 committed by GitHub
parent ac8fca6f47
commit b4314468a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,7 +125,7 @@ export default async (
path.join(__dirname, '..', '..', 'templates', 'virtualModuleEntry.template.js')
);
previewAnnotations.forEach((previewAnnotationFilename: string) => {
previewAnnotations.forEach((previewAnnotationFilename: string | undefined) => {
if (!previewAnnotationFilename) return;
const clientApi = storybookPaths['@storybook/client-api'];
const clientLogger = storybookPaths['@storybook/client-logger'];