Current behaviour 💣
Build program will crash when set output.publicPath as a function.
Expected behBaviour ☀️
Be fine.
Reproduction Example 👾
https://stackblitz.com/github/Gehbt/reprod-rspack-external-html-plugin
reproduct:
run pnpm run build
Environment 🖥
no matter
Additional comments
It is looks like rspack's compilation.getAssetPath not support function at first parameter.
rspack:

webpack:

Current behaviour 💣
Build program will crash when set
output.publicPathas a function.Expected behBaviour ☀️
Be fine.
Reproduction Example 👾
https://stackblitz.com/github/Gehbt/reprod-rspack-external-html-plugin
reproduct:
run
pnpm run buildEnvironment 🖥
no matter
Additional comments
It is looks like rspack's
compilation.getAssetPathnot support function at first parameter.rspack:

webpack:
