Skip to content

Commit

Permalink
Merge pull request #2690 from modernweb-dev/fix/sb-windows-path
Browse files Browse the repository at this point in the history
fix: sb windows path
  • Loading branch information
thepassle authored Apr 4, 2024
2 parents 24d0e1c + d2dbb7b commit e69ebc4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/rude-lies-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@web/dev-server-storybook": patch
"@web/dev-server": patch
---

fix: sb windows path
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export async function readStorybookConfig(
}

const mainJs = commonJsMainExists
? validateMainJs((await import(commonJsMainPath)).default)
? validateMainJs((await import(pathToFileURL(commonJsMainPath).href)).default)
: validateMainJs((await import(pathToFileURL(mainJsPath).href)).default);

return {
Expand Down

0 comments on commit e69ebc4

Please sign in to comment.