Skip to content

Commit

Permalink
Fix iframe entries for virtual module on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Dec 29, 2022
1 parent d61cfc1 commit 15d2b4d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import CaseSensitivePathsPlugin from 'case-sensitive-paths-webpack-plugin';
import TerserWebpackPlugin from 'terser-webpack-plugin';
import VirtualModulePlugin from 'webpack-virtual-modules';
import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
import slash from 'slash';

import type { Options, CoreConfig, DocsOptions, PreviewAnnotation } from '@storybook/types';
import { globals } from '@storybook/preview/globals';
Expand Down Expand Up @@ -108,7 +109,7 @@ export default async (
if (typeof entry === 'object') {
return entry.absolute;
}
return entry;
return slash(entry);
}
),
loadPreviewOrConfigFile(options),
Expand Down

0 comments on commit 15d2b4d

Please sign in to comment.