tapable
tapable copied to clipboard
Just a little module for plugins.
I simply implemented a MySyncHook, and then traversed the callback function directly in the call method, and printed the execution time. At the same time, I used tapable's official SyncHook...
Add a union type to make AsyncSeriesWaterfallHook support pass return type
Getting below error in my code when I install webpack5 : `TypeError: Cannot read properties of undefined (reading 'tap') at /Users/a0s0mwv/Documents/Work/Insights/ui-channel-perf/node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/index.js:236:65 at SyncHook.eval [as call] (eval at create (/Users/a0s0mwv/Documents/Work/Insights/ui-channel-perf/node_modules/react-scripts/node_modules/tapable/lib/HookCodeFactory.js:19:10), :15:1)...
A sync hook can only be tapped with synchronous functions. So if the HookMap want to use `tapAsync` or `tapPromise` methods, it should use async hooks, such as `AsyncSeriesHook`. 
My solution was to add an if statement to the promise's reject function to detect if the error is truthy or falsy. If is falsy an error object will be...
Let's try and break up a way to make the new phases and hooks easier to understand. Public API (for Tapable instance) Public API for a plugin registered to an...
Hi, I seem to have found a bug: ### Environment - Tapable: v2.2.1 - Node: v16.16.0 - OS: MacOS 12.5 ### Case ```js const { AsyncSeriesHook } = require('tapable'); const...
Fix the error `Parsing error: The keyword 'const' is reserved` generated in IDEs due to the default ES5 syntax-checking of ESLint.
What is the best way to re-order hooks. I have a hook I want to run last. Should it be done with intercept and register?