diff --git a/packages/storybook-builder/CHANGELOG.md b/packages/storybook-builder/CHANGELOG.md index db951ea6f..651244ac9 100644 --- a/packages/storybook-builder/CHANGELOG.md +++ b/packages/storybook-builder/CHANGELOG.md @@ -1,5 +1,11 @@ # @web/storybook-builder +## 0.1.18 + +### Patch Changes + +- 75747976: fix relative path by starting with ./ + ## 0.1.17 ### Patch Changes diff --git a/packages/storybook-builder/package.json b/packages/storybook-builder/package.json index 3dcb550f1..0eeb2ada5 100644 --- a/packages/storybook-builder/package.json +++ b/packages/storybook-builder/package.json @@ -1,6 +1,6 @@ { "name": "@web/storybook-builder", - "version": "0.1.17", + "version": "0.1.18", "publishConfig": { "access": "public" }, diff --git a/packages/storybook-builder/src/esbuild-plugin-commonjs-named-exports.ts b/packages/storybook-builder/src/esbuild-plugin-commonjs-named-exports.ts index 3f5b87c4d..4d8218d04 100644 --- a/packages/storybook-builder/src/esbuild-plugin-commonjs-named-exports.ts +++ b/packages/storybook-builder/src/esbuild-plugin-commonjs-named-exports.ts @@ -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), )}';`, };