From dcf8f344ece5d3fe0cd927d7d9ab7cbba274687b Mon Sep 17 00:00:00 2001 From: chakAs3 Date: Sat, 8 Jul 2023 23:56:53 +0400 Subject: [PATCH] Build set strict-ts true and fix types --- code/frameworks/vue3-vite/src/preset.ts | 2 +- code/frameworks/vue3-vite/tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/frameworks/vue3-vite/src/preset.ts b/code/frameworks/vue3-vite/src/preset.ts index 7af3f31056e7..34740a0b587f 100644 --- a/code/frameworks/vue3-vite/src/preset.ts +++ b/code/frameworks/vue3-vite/src/preset.ts @@ -13,7 +13,7 @@ export const viteFinal: StorybookConfig['viteFinal'] = async (config, { presets const plugins: PluginOption[] = []; // Add vue plugin if not present - if (!(await hasVitePlugins(config.plugins, ['vite:vue']))) { + if (!(config.plugins && (await hasVitePlugins(config.plugins, ['vite:vue'])))) { const { default: vue } = await import('@vitejs/plugin-vue'); plugins.push(vue()); } diff --git a/code/frameworks/vue3-vite/tsconfig.json b/code/frameworks/vue3-vite/tsconfig.json index 5a2a397f2eb4..bbd5d9a38f99 100644 --- a/code/frameworks/vue3-vite/tsconfig.json +++ b/code/frameworks/vue3-vite/tsconfig.json @@ -5,7 +5,7 @@ "types": ["node"], "skipLibCheck": true, "resolveJsonModule": true, - "strict": false + "strict": true }, "include": ["src/**/*"] }