
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
webpack-dep-finder
Advanced tools
A Webpack plugin and CLI tool for efficiently pinpointing and analyzing dependencies in your Webpack bundles using regex. Ideal for optimizing and streamlining the build process during iterative development, helping to detangle complex dependency trees qu
A fast and efficient tool for pinpointing the issuer path of a specific dependency in your Webpack bundles.
Found target dependency: /path/to/your/dependency.js
/path/to/your/entry-file.js
/path/to/another/dependency.js
/path/to/your/dependency.js
This output shows the path from the entry file to the target dependency.
You can use webpack-dep-finder
as a CLI tool:
# Install the package globally
npm install -g webpack-dep-finder
# Run the CLI tool
npx webpack-dep-finder --dependency-pattern /your-regex-pattern/ --config path/to/webpack.config.js
--entry-point
option or search for an entry point using a partial string or regex match with --entry-match
.ts-loader
: If ts-loader
is detected, it is automatically overridden to use transpileOnly: true
to speed up TypeScript builds during dependency scanning.-d, --dependency-pattern <pattern> Regex pattern to match the resource path/filename to locate. (Required)
--no-halt-on-match Continue searching even after the dependency is found. (Default: false)
--show-webpack-output Display Webpack's build output. (Default: false)
-c, --config <path> Path to the Webpack configuration file. (Default: "webpack.config.js")
--entry-point <path> Specify an entry point to begin the search from.
--entry-match <pattern> Specify a regex or partial string to match the entry point filename.
-V, --version Output the version number.
-h, --help Output usage information.
# NPM
npm install --save-dev webpack-dep-finder
# Yarn
yarn add -D webpack-dep-finder
const WebpackDepFinder = require("webpack-dep-finder");
new WebpackDepFinder({
dependencyPattern: /your-regex-pattern/,
haltOnMatch: true,
showWebpackOutput: false
});
Speed Benefits:
webpack-dep-finder
identifies dependencies quickly by stopping the search as soon as the specified dependency is found.Visualizing Speedup:
webpack-dep-finder
so fast?webpack-dep-finder
is designed for speed by stopping the search as soon as the specified dependency is found during the Webpack compilation process. This approach contrasts with tools that analyze the entire bundle, making webpack-dep-finder
a quicker option for targeted searches.
If the specified dependency isn't found, webpack-dep-finder
will complete the entire build process without performing any additional analysis. Ensure that the dependency name is correct and that it is included in your Webpack build.
puj |
We welcome contributions to Webpack Dep Finder! Please see CONTRIBUTING.md for more details.
FAQs
A Webpack plugin and CLI tool for efficiently pinpointing and analyzing dependencies in your Webpack bundles using regex. Ideal for optimizing and streamlining the build process during iterative development, helping to detangle complex dependency trees qu
The npm package webpack-dep-finder receives a total of 3 weekly downloads. As such, webpack-dep-finder popularity was classified as not popular.
We found that webpack-dep-finder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.