mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 22:37:04 +08:00
fix: remove vite-tsconfig-paths (#5960)
It will cause storybook from running. related to https://github.com/aleclarson/vite-tsconfig-paths/issues/132 We are not actually using `vite-tsconfig-paths` now because we rely on package.json's export field to do path mapping.
This commit is contained in:
@@ -2,7 +2,6 @@ import { runCli } from '@magic-works/i18n-codegen';
|
||||
import type { StorybookConfig } from '@storybook/react-vite';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { mergeConfig } from 'vite';
|
||||
import tsconfigPaths from 'vite-tsconfig-paths';
|
||||
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin';
|
||||
import { getRuntimeConfig } from '../../../packages/frontend/core/.webpack/runtime-config';
|
||||
|
||||
@@ -26,7 +25,6 @@ export default {
|
||||
'@storybook/addon-links',
|
||||
'@storybook/addon-essentials',
|
||||
'@storybook/addon-interactions',
|
||||
'@storybook/addon-storysource',
|
||||
'storybook-dark-mode',
|
||||
'storybook-addon-react-router-v6',
|
||||
],
|
||||
@@ -53,13 +51,7 @@ export default {
|
||||
),
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
vanillaExtractPlugin(),
|
||||
tsconfigPaths({
|
||||
root: fileURLToPath(new URL('../../../', import.meta.url)),
|
||||
ignoreConfigErrors: true,
|
||||
}),
|
||||
],
|
||||
plugins: [vanillaExtractPlugin()],
|
||||
define: {
|
||||
'process.on': 'undefined',
|
||||
'process.env': {},
|
||||
|
||||
Reference in New Issue
Block a user