Skip to content

Commit

Permalink
Merge pull request #2814 from modernweb-dev/fix/relative-path
Browse files Browse the repository at this point in the history
fix(storybook-builder): start relative path with ./
  • Loading branch information
bashmish authored Sep 24, 2024
2 parents 45c1cf8 + 7574797 commit 68296d1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 18 deletions.
5 changes: 5 additions & 0 deletions .changeset/weak-parrots-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@web/storybook-builder': patch
---

fix relative path by starting with ./
34 changes: 17 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function esbuildPluginCommonjsNamedExports(modules: string[]): Plugin {

return {
resolveDir,
contents: `export { ${finalExports.join(',')} } from '${slash(
contents: `export { ${finalExports.join(',')} } from './${slash(
relative(resolveDir, resolvedPath),
)}';`,
};
Expand Down

0 comments on commit 68296d1

Please sign in to comment.