From 616d5887c8cd0f3729af7bd8fccd3431e70cc82f Mon Sep 17 00:00:00 2001 From: Daniel Lupu Date: Mon, 9 Mar 2020 18:54:26 +0200 Subject: [PATCH] woops --- lib/options-manager.js | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/lib/options-manager.js b/lib/options-manager.js index 60acc432..c765cb54 100644 --- a/lib/options-manager.js +++ b/lib/options-manager.js @@ -474,43 +474,6 @@ const findApplicableOverrides = (path, overrides) => { }; }; -const gatherImportResolvers = options => { - let resolvers = {}; - - const resolverSettings = options.settings && options.settings['import/resolver']; - if (resolverSettings) { - if (typeof resolverSettings === 'string') { - resolvers[resolverSettings] = {}; - } else { - resolvers = {...resolverSettings}; - } - } - - let webpackResolverSettings; - - if (options.webpack) { - webpackResolverSettings = options.webpack === true ? {} : options.webpack; - } else if (!(options.webpack === false || resolvers.webpack)) { - // If a webpack config file exists, add the import resolver automatically - const webpackConfigPath = findUp.sync('webpack.config.js', {cwd: options.cwd}); - if (webpackConfigPath) { - webpackResolverSettings = {config: webpackConfigPath}; - } - } - - if (webpackResolverSettings) { - resolvers = { - ...resolvers, - webpack: { - ...resolvers.webpack, - ...webpackResolverSettings - } - }; - } - - return resolvers; -}; - const getIgnores = ({ignores}) => DEFAULT_IGNORES.concat(ignores || []); const gatherImportResolvers = options => {