It seems that the issue discussed below is a problem that has arisen since Chrome 130. This can be resolved by upgrading the @crxjs/vite-plugin to version ^2.0.0-beta.26.
https://github.com/crxjs/chrome-extension-tools/issues/918#issuecomment-2425242487