Skip to content

Commit

Permalink
cleanup webpack detection
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed May 26, 2022
1 parent 77c0f3a commit 0dc4f50
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/cli/src/detect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
} from './project_types';
import { getBowerJson, paddedLog } from './helpers';
import { PackageJson, readPackageJson, JsPackageManager } from './js-package-manager';
import { detectWebpack } from './detect-webpack';
import { detectNextJS } from './detect-nextjs';

const viteConfigFiles = ['vite.config.ts', 'vite.config.js', 'vite.config.mjs'];
Expand Down Expand Up @@ -121,16 +120,6 @@ export function detectBuilder(packageManager: JsPackageManager) {
}
}

const webpackVersion = detectWebpack(packageManager);
if (webpackVersion) {
if (webpackVersion <= 4) {
return CoreBuilder.Webpack4;
}
if (webpackVersion >= 5) {
return CoreBuilder.Webpack5;
}
}

// Fallback to webpack5
return CoreBuilder.Webpack5;
}
Expand Down

0 comments on commit 0dc4f50

Please sign in to comment.