Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: Remove unsupported frameworks/renderers and improve builder detection #22492

Merged
merged 11 commits into from
May 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 11 additions & 2 deletions code/lib/cli/src/detect.ts
Expand Up @@ -128,14 +128,23 @@ export async function detectBuilder(packageManager: JsPackageManager, projectTyp

// Fallback to Vite or Webpack based on project type
switch (projectType) {
case ProjectType.VUE:
case ProjectType.VUE3:
case ProjectType.SFC_VUE:
return CoreBuilder.Vite;
case ProjectType.REACT_SCRIPTS:
valentinpalkovic marked this conversation as resolved.
Show resolved Hide resolved
case ProjectType.ANGULAR:
case ProjectType.NEXTJS:
return CoreBuilder.Webpack5;
/**
* START: Explicit Webpack 5 builder
*
* These project types are explicitly using Webpack 5 if a vite.config file is not found, because
* a vite.config file is necessary to configure these project types to use Vite, which is already
* handled above
*/
case ProjectType.PREACT:
case ProjectType.VUE:
case ProjectType.VUE3:
valentinpalkovic marked this conversation as resolved.
Show resolved Hide resolved
/** END: Explicit Webpack 5 builder */
return CoreBuilder.Webpack5;
default:
// eslint-disable-next-line no-case-declarations
Expand Down