fix(infra): workaround for self-referencing in storybook (#5406)

This commit is contained in:
Peng Xiao
2023-12-26 20:27:20 +08:00
committed by GitHub
parent 62fbab4f78
commit c02ec5f7b9

View File

@@ -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: [