A webpack plugin that verifies there are no missing or outdated yarn dependencies during development. The plugin runs `yarn check --integtrity` as a webpack compilation hook and displays warnings for missing or wrong version packages. It is designed for large codebases where dependencies change frequently across branches. The current stable version is 1.2.0, but the package appears in maintenance mode (last release in 2019). It is type-safe with TypeScript types included. Exclusive in its integration of yarn's dependency checking directly into the webpack build lifecycle, differentiating it from lint-based or separate CLI approaches.
npm install yarn-check-webpack-pluginVerified import paths — ran on the pinned version, not inferred.
Basic setup showing CommonJS require, plugin instantiation with optional config (rootDirectory and exclude), and conditional 'forceKill' option.
Use yarn-plugin or upgrade to a tool like 'check-dependencies', or stay on Yarn Classic.
Add 'forceKill' property if needed, otherwise it's optional.
Use the appropriate plugin for your package manager (e.g., npm-check-webpack-plugin).
Consider using a watch mode filter or only run in development.
yarn add -D yarn-check-webpack-plugin
Use { YarnCheck } from 'yarn-check-webpack-plugin'Run 'yarn install --check-files' to restore missing packages.
No dependency data recorded yet.