Skip to content

refactor(processor): extract 'Hooks' group#212

Merged
avivkeller merged 1 commit into
webpack:mainfrom
moshams272:refactor/hooks-group-extraction
Jul 24, 2026
Merged

refactor(processor): extract 'Hooks' group#212
avivkeller merged 1 commit into
webpack:mainfrom
moshams272:refactor/hooks-group-extraction

Conversation

@moshams272

@moshams272 moshams272 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR:

  • Extract hooks from Properties section to a standalone Hooks section under Methods section and treat thme like Methods.
  • Implement a recursive AST traversal (extractHooks) to resolve deeply nested Readonly and intersection types in Webpack's hooks.
  • Fix parameter naming with fallback arg{i} placeholders.
  • Align return type assignments with tapable definitions, accurately handling Basic, Bail and Waterfall hooks.

refs: tapable hook types
Fixes: #206

@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webpack-doc-kit Ready Ready Preview, Comment Jul 24, 2026 1:28pm

Request Review

@avivkeller
avivkeller merged commit 563732f into webpack:main Jul 24, 2026
10 checks passed
@avivkeller

Copy link
Copy Markdown
Member

Ack! My autofill auto-filled a Co-Author statement in 563732f 😭 I've co-authored so many PRs in my time it's just assuming things now. Whoops!

@moshams272

Copy link
Copy Markdown
Contributor Author

Ack! My autofill auto-filled a Co-Author statement in 563732f 😭 I've co-authored so many PRs in my time it's just assuming things now. Whoops!

Since you helped me on some decisions for this PR on Discord, I guess the autofill knows what it's doing 😂

In the end, It's a great honor for me 🤍

@moshams272
moshams272 deleted the refactor/hooks-group-extraction branch July 24, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a Hooks section

2 participants