From 3442b183583fac0d1c0f9780785d3f07faa63943 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Mon, 28 Nov 2022 13:48:32 +0100 Subject: [PATCH] remove message, after talking it over, it's too noisy --- code/lib/builder-vite/package.json | 1 - code/lib/builder-vite/src/vite-config.ts | 13 ------------- code/yarn.lock | 1 - 3 files changed, 15 deletions(-) diff --git a/code/lib/builder-vite/package.json b/code/lib/builder-vite/package.json index c349d4a57d0d..bc0e342368b4 100644 --- a/code/lib/builder-vite/package.json +++ b/code/lib/builder-vite/package.json @@ -65,7 +65,6 @@ "devDependencies": { "@types/express": "^4.17.13", "@types/node": "^16.0.0", - "ts-dedent": "^2.0.0", "typescript": "^4.9.3", "vite": "^3.1.3" }, diff --git a/code/lib/builder-vite/src/vite-config.ts b/code/lib/builder-vite/src/vite-config.ts index 7609c15151a4..464373b6f7cd 100644 --- a/code/lib/builder-vite/src/vite-config.ts +++ b/code/lib/builder-vite/src/vite-config.ts @@ -11,8 +11,6 @@ import viteReact from '@vitejs/plugin-react'; import externalGlobals from 'rollup-plugin-external-globals'; import { isPreservingSymlinks, getFrameworkName } from '@storybook/core-common'; import { globals } from '@storybook/preview/globals'; -// eslint-disable-next-line import/no-extraneous-dependencies -import dedent from 'ts-dedent'; import { codeGeneratorPlugin, injectExportOrderPlugin, @@ -48,17 +46,6 @@ export async function commonConfig( const { config: { build: buildProperty = undefined, ...userConfig } = {} } = (await loadConfigFromFile(configEnv)) ?? {}; - if (buildProperty) { - console.warn( - dedent` - The 'build' property in your vite config is not supported by storybook. Please use the viteFinal function in main.js to configure the build. - This is because storybook needs to configure the build for you. - - Often the user's (your) app, needs 'build' config that is different from storybook. - ` - ); - } - const sbConfig: InlineConfig = { configFile: false, cacheDir: 'node_modules/.cache/.vite-storybook', diff --git a/code/yarn.lock b/code/yarn.lock index 93c541c79f48..5bd97713e45a 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -5894,7 +5894,6 @@ __metadata: magic-string: ^0.26.1 rollup-plugin-external-globals: ^0.7.1 slash: ^3.0.0 - ts-dedent: ^2.0.0 typescript: ^4.9.3 vite: ^3.1.3 peerDependencies: