build: Fix minifier options for webpack builds (#78717)
### What?
Adjust the options for the SWC minifier to disable character frequency analysis for webpack builds correctly.
### Why?
https://github.com/vercel/next.js/pull/77887 only adjusted the option for rspack.
### How?
Follow-up of https://github.com/vercel/next.js/pull/77887