mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-11 23:26:30 +08:00
chore(storybook): remove cache (#3917)
This commit is contained in:
@@ -5,7 +5,6 @@ import { mergeConfig } from 'vite';
|
||||
import tsconfigPaths from 'vite-tsconfig-paths';
|
||||
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin';
|
||||
import { getRuntimeConfig } from '../../core/.webpack/runtime-config';
|
||||
import turbosnap from 'vite-plugin-turbosnap';
|
||||
|
||||
runCli(
|
||||
{
|
||||
@@ -34,7 +33,7 @@ export default {
|
||||
framework: {
|
||||
name: '@storybook/react-vite',
|
||||
},
|
||||
async viteFinal(config, { configType }) {
|
||||
async viteFinal(config, _options) {
|
||||
return mergeConfig(config, {
|
||||
assetsInclude: ['**/*.md'],
|
||||
plugins: [
|
||||
@@ -42,11 +41,6 @@ export default {
|
||||
tsconfigPaths({
|
||||
root: fileURLToPath(new URL('../../../', import.meta.url)),
|
||||
}),
|
||||
configType === 'PRODUCTION'
|
||||
? turbosnap({
|
||||
rootDir: fileURLToPath(new URL('../../../', import.meta.url)),
|
||||
})
|
||||
: null,
|
||||
],
|
||||
define: {
|
||||
'process.env': {},
|
||||
|
||||
@@ -41,8 +41,7 @@
|
||||
"chromatic": "^6.22.0",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"storybook-addon-react-router-v6": "^2.0.4",
|
||||
"vite-plugin-turbosnap": "^1.0.2"
|
||||
"storybook-addon-react-router-v6": "^2.0.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@blocksuite/blocks": "*",
|
||||
|
||||
@@ -726,7 +726,6 @@ __metadata:
|
||||
storybook: ^7.3.1
|
||||
storybook-addon-react-router-v6: ^2.0.4
|
||||
storybook-dark-mode: ^3.0.1
|
||||
vite-plugin-turbosnap: ^1.0.2
|
||||
wait-on: ^7.0.1
|
||||
peerDependencies:
|
||||
"@blocksuite/blocks": "*"
|
||||
@@ -32574,13 +32573,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"vite-plugin-turbosnap@npm:^1.0.2":
|
||||
version: 1.0.2
|
||||
resolution: "vite-plugin-turbosnap@npm:1.0.2"
|
||||
checksum: c5da204cd9fa0dbf8a5f3c151681057da0f8cec3acbec94bdc04e525d410d85bd87c46b73498ba20c487fe61a68b1486b0f88bc51fec48d7053d1f3597411231
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"vite-tsconfig-paths@npm:^4.2.0":
|
||||
version: 4.2.0
|
||||
resolution: "vite-tsconfig-paths@npm:4.2.0"
|
||||
|
||||
Reference in New Issue
Block a user