Webpack-aware module resolution plugin for eslint-plugin-import, version 0.13.11. Resolves import paths using a webpack configuration (webpack.config.js by default) to support custom resolve aliases, extensions, and modules. Released as part of the eslint-plugin-import ecosystem. Stable but limited to synchronous configs; async configs will break. Supports config file path, index, inline object, environment variables, and caching. Last major release in 2019; no active development, but still functional with webpack >=1.11.0 and eslint-plugin-import >=1.4.0.
npm install eslint-import-resolver-webpackVerified import paths — ran on the pinned version, not inferred.
Configures eslint-plugin-import to resolve modules using Webpack aliases and extensions from a webpack configuration file.
Split async parts into a separate config file or use a synchronous wrapper.
Consider migrating to eslint-import-resolver-alias or custom resolver if issues arise.
Specify config-index in settings to pick the desired config.
Set env parameter in resolver config to pass required env vars.
Ensure webpack.config.js exists or provide an absolute path via the 'config' setting.
Check that webpack config exports a valid configuration object with a 'resolve' section.
Provide an 'env' setting to invoke the function, or use an object config.