Skip to content

Commit

Permalink
fix(infra): workaround for self-referencing in storybook (#5406)
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 authored Dec 26, 2023
1 parent 62fbab4 commit c02ec5f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/storybook/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ export default {
'@toeverything/infra': fileURLToPath(
new URL('../../../packages/common/infra/src', import.meta.url)
),
// workaround for https://github.com/vitejs/vite/issues/9731
// it seems vite does not resolve self reference correctly?
'@affine/core': fileURLToPath(
new URL('../../../packages/frontend/core/src', import.meta.url)
),
},
},
plugins: [
Expand Down

0 comments on commit c02ec5f

Please sign in to comment.