build: Update `swc_core` to `v12.0.0` (#75327)
### What?
Update `swc_core` to the next version.
ChangeLog: https://github.com/swc-project/swc/compare/swc_core%40v10.5.0...swc_core%40v12.0.0
### Why?
To apply an enormous amount of performance patches.