web-infra-dev / rspack

The fast Rust-based web bundler with webpack-compatible API 🦀️
https://rspack.dev
MIT License
10.04k stars 573 forks source link

[Feature]: Support webpack compilation.hooks.needAdditionalPass #8485

Open GiveMe-A-Name opened 2 days ago

GiveMe-A-Name commented 2 days ago

What problem does this feature solve?

Support hooks compilation.needAdditionalPass

What does the proposed API of configuration look like?

Align webpack

/** @type {SyncBailHook<[], boolean>} */
needAdditionalPass: new SyncBailHook([]),