A set of Webpack plugins, loaders and utilities for advanced dependency resolution, including comment-include-loader, conventional-include-loader, explicit-loader, MappedModuleIdsPlugin, and nested-directory resolve plugins. Current stable version is 2.4.5, last updated August 2017 (appears to be in maintenance mode). It extends Webpack's require.include functionality similar to baggage-loader but with more configuration, custom module ID mapping, and enhanced-resolve integration. Requires Webpack 3.x and enhanced-resolve ^3.0.0 as peer dependencies.
npm install webpack-dependency-suiteVerified import paths — ran on the pinned version, not inferred.
Demonstrates basic setup with CommentIncludeLoader for require.include comments and MappedModuleIdsPlugin for custom module IDs.
Use with Webpack 3 only or migrate to alternatives like NormalModuleReplacementPlugin.
Consider using modern alternatives (e.g., webpack-auto-inject, @rollup/plugin-inject).
Use explicit subpath require: require('webpack-dependency-suite/comment-include-loader').Use non-glob paths or escape slashes: /* @import('thing\/*\/also\/works') @lazy @ */ 'module'Ensure JSON file keys are valid paths relative to project root or absolute.
npm install enhanced-resolve@^3.0.0 --save-dev
Remove the plugin call or downgrade to Webpack 3: npm install webpack@3 --save-dev
Use Webpack 3 or switch to alternative approach with Webpack 5.