diff --git a/resolvers/webpack/CHANGELOG.md b/resolvers/webpack/CHANGELOG.md index 457cd36ed..bd567c4cb 100644 --- a/resolvers/webpack/CHANGELOG.md +++ b/resolvers/webpack/CHANGELOG.md @@ -4,6 +4,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). This change log adheres to standards from [Keep a CHANGELOG](https://keepachangelog.com). ## Unreleased + - [fix] use the `dirname` of the `configPath` as `basedir` ([#2859]) ## 0.13.6 - 2023-08-16 - [refactor] revert back to `lodash/isEqual` @@ -197,6 +198,7 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange [#181]: https://github.com/import-js/eslint-plugin-import/pull/181 [#164]: https://github.com/import-js/eslint-plugin-import/pull/164 +[#2859]: https://github.com/import-js/eslint-plugin-import/issues/2859 [#2268]: https://github.com/import-js/eslint-plugin-import/issues/2268 [#1219]: https://github.com/import-js/eslint-plugin-import/issues/1219 [#788]: https://github.com/import-js/eslint-plugin-import/issues/788 diff --git a/resolvers/webpack/index.js b/resolvers/webpack/index.js index 1eea7d7ab..ebd77af1e 100644 --- a/resolvers/webpack/index.js +++ b/resolvers/webpack/index.js @@ -183,7 +183,7 @@ function createResolveSync(configPath, webpackConfig, cwd) { if (typeof configPath === 'string') { // This can be changed via the settings passed in when defining the resolver - basedir = cwd || configPath; + basedir = cwd || path.dirname(configPath); log(`Attempting to load webpack path from ${basedir}`); }