How to package MetaMask into Manifest V3 version

I saw that there is a configuration for Manifest V3 in the source code of MetaMask. I would like to ask where I need to modify it so that when the code is packaged, it can be packaged as the version of Manifest V3

Hi!

Does this help at all?