Skip to content

Commit 68296d1

Browse files
authored
Merge pull request #2814 from modernweb-dev/fix/relative-path
fix(storybook-builder): start relative path with ./
2 parents 45c1cf8 + 7574797 commit 68296d1

File tree

3 files changed

+23
-18
lines changed

3 files changed

+23
-18
lines changed

.changeset/weak-parrots-push.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@web/storybook-builder': patch
3+
---
4+
5+
fix relative path by starting with ./

package-lock.json

+17-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/storybook-builder/src/esbuild-plugin-commonjs-named-exports.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function esbuildPluginCommonjsNamedExports(modules: string[]): Plugin {
5858

5959
return {
6060
resolveDir,
61-
contents: `export { ${finalExports.join(',')} } from '${slash(
61+
contents: `export { ${finalExports.join(',')} } from './${slash(
6262
relative(resolveDir, resolvedPath),
6363
)}';`,
6464
};

0 commit comments

Comments
 (0)