Skip to content

Commit

Permalink
chore: use extname instead of parse
Browse files Browse the repository at this point in the history
  • Loading branch information
anshumanv committed Aug 19, 2020
1 parent 13e323c commit 27bf777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/webpack-cli/lib/groups/ConfigGroup.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { existsSync } = require('fs');
const { resolve, sep, dirname, parse } = require('path');
const { resolve, sep, dirname, extname } = require('path');
const webpackMerge = require('webpack-merge');
const { extensions, jsVariants } = require('interpret');
const GroupHelper = require('../utils/GroupHelper');
Expand Down Expand Up @@ -42,7 +42,7 @@ const getDefaultConfigFiles = () => {
};

const getConfigInfoFromFileName = (filename) => {
const { ext } = parse(filename);
const ext = extname(filename);
// since we support only one config for now
const allFiles = [filename];
// return all the file metadata
Expand Down

0 comments on commit 27bf777

Please sign in to comment.