We had to remove the url extraction within webpack templates in #18113 since it crashed builds.
We need to instead find a way to add this within runtime context e.g. in an event processor or client hook. This way we'll fix this for both webpack and turbopack.