chore(storybook): remove cache (#3917)

This commit is contained in:
Alex Yang
2023-08-23 09:50:25 -05:00
committed by GitHub
parent a600626b83
commit e397f18316
3 changed files with 2 additions and 17 deletions
+1 -7
View File
@@ -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': {},
+1 -2
View File
@@ -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": "*",