From 1c1b6dba6d70088bbe81233e4d7a354cb2df9231 Mon Sep 17 00:00:00 2001 From: Katerina Skroumpelou Date: Thu, 17 Nov 2022 15:19:51 +0200 Subject: [PATCH] fix(bundling): remove the vue options from vite gen Remove the Vuejs options from the vite generator, since we're not providing much --- docs/generated/packages/vite.json | 2 +- packages/vite/src/generators/init/init.ts | 8 -------- packages/vite/src/generators/init/schema.d.ts | 2 +- packages/vite/src/generators/init/schema.json | 2 +- 4 files changed, 3 insertions(+), 11 deletions(-) diff --git a/docs/generated/packages/vite.json b/docs/generated/packages/vite.json index 3c707d2410712e..4e1be625ba81b0 100644 --- a/docs/generated/packages/vite.json +++ b/docs/generated/packages/vite.json @@ -28,7 +28,7 @@ "uiFramework": { "type": "string", "description": "UI Framework to use for Vite.", - "enum": ["react", "vue3", "vue3-jsx"], + "enum": ["react", "none"], "default": "react", "x-prompt": "What UI framework plugin should Vite use?" } diff --git a/packages/vite/src/generators/init/init.ts b/packages/vite/src/generators/init/init.ts index bed334d18b45ac..5ec0fb719c8002 100644 --- a/packages/vite/src/generators/init/init.ts +++ b/packages/vite/src/generators/init/init.ts @@ -36,14 +36,6 @@ function checkDependenciesInstalled(host: Tree, schema: Schema) { devDependencies['@vitejs/plugin-react'] = vitePluginReactVersion; } - if (schema.uiFramework === 'vue3') { - devDependencies['@vitejs/plugin-vue'] = vitePluginReactVersion; - } - - if (schema.uiFramework === 'vue3-jsx') { - devDependencies['@vitejs/plugin-vue-jsx'] = vitePluginReactVersion; - } - return addDependenciesToPackageJson(host, dependencies, devDependencies); } diff --git a/packages/vite/src/generators/init/schema.d.ts b/packages/vite/src/generators/init/schema.d.ts index d6811de991e135..a36fd7d79fad00 100644 --- a/packages/vite/src/generators/init/schema.d.ts +++ b/packages/vite/src/generators/init/schema.d.ts @@ -1,3 +1,3 @@ export interface Schema { - uiFramework: 'react' | 'vue3' | 'vue3-jsx'; + uiFramework: 'react' | 'none'; } diff --git a/packages/vite/src/generators/init/schema.json b/packages/vite/src/generators/init/schema.json index 38b82bfa42aac8..71e58a146d97a8 100644 --- a/packages/vite/src/generators/init/schema.json +++ b/packages/vite/src/generators/init/schema.json @@ -8,7 +8,7 @@ "uiFramework": { "type": "string", "description": "UI Framework to use for Vite.", - "enum": ["react", "vue3", "vue3-jsx"], + "enum": ["react", "none"], "default": "react", "x-prompt": "What UI framework plugin should Vite use?" }