Skip to content

Commit

Permalink
refactor: cli import
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Sep 25, 2020
1 parent 1207dc8 commit 36e75ab
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/webpack-cli/lib/utils/cli-flags.js
@@ -1,4 +1,5 @@
const { packageExists } = require('@webpack-cli/package-utils');
const cli = packageExists('webpack') ? require('webpack').cli : undefined

const HELP_GROUP = 'help';
const CONFIG_GROUP = 'config';
Expand All @@ -7,10 +8,6 @@ const OUTPUT_GROUP = 'output';
const ADVANCED_GROUP = 'advanced';
const ZERO_CONFIG_GROUP = 'zero-config';

let cli = undefined;
if (packageExists('webpack')) {
cli = require('webpack').cli;
}

const groups = {
HELP_GROUP,
Expand Down

0 comments on commit 36e75ab

Please sign in to comment.