Skip to content

Commit e69ebc4

Browse files
authored
Merge pull request #2690 from modernweb-dev/fix/sb-windows-path
fix: sb windows path
2 parents 24d0e1c + d2dbb7b commit e69ebc4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/rude-lies-share.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@web/dev-server-storybook": patch
3+
"@web/dev-server": patch
4+
---
5+
6+
fix: sb windows path

packages/dev-server-storybook/src/shared/config/readStorybookConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export async function readStorybookConfig(
7070
}
7171

7272
const mainJs = commonJsMainExists
73-
? validateMainJs((await import(commonJsMainPath)).default)
73+
? validateMainJs((await import(pathToFileURL(commonJsMainPath).href)).default)
7474
: validateMainJs((await import(pathToFileURL(mainJsPath).href)).default);
7575

7676
return {

0 commit comments

Comments
 (0)