A compatibility layer for the webpack plugin API that simplifies supporting both v4 and pre-v4 versions (v3/v2). Current version 1.0.4 adds support for Tapable v2.0. Key differentiators: transparent event name mapping (spaces/hyphens to camelCase), HookMap support via space-delimited tokens, special-cased parser events, and a unified reg/tap API that works across webpack versions. Maintained by the Dojo toolkit team.
npm install webpack-plugin-compatNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage: creating a Tapable plugin object, registering a SyncHook, tapping it with a named plugin, and calling the hook.
Use `import { tap } from 'webpack-plugin-compat/for'` or `const { tap } = require('webpack-plugin-compat/for');`Use camelCase event names explicitly to avoid ambiguity, or use HookMap tokens for space-delimited names.
Ensure your code is compatible with Tapable v2 (e.g., no direct access to Tapable internals).
Upgrade to webpack 5+ and remove this dependency.
Use `import { tap } from 'webpack-plugin-compat/for'` and then `tap.for('myPlugin')`.Ensure the HookMap is registered via `reg(plugin, 'evaluateTypeof', ...)` or remove spaces from the event name.
Ensure your package manager resolves the package correctly. Try using a direct import: `const { tap } = require('webpack-plugin-compat').for('name');`No dependency data recorded yet.