Revert "Revert "chore: Update swc_core to `v0.40.13`"" (#41700)
Reverts vercel/next.js#41699
Seems this isn't the root cause x-ref: [slack
thread](https://vercel.slack.com/archives/CGU8HUTUH/p1666583144325379?thread_ts=1666573520.221259&cid=CGU8HUTUH)