Bob's ore mod in particular is easy to support, as he provides functions for checking his existence, even for each individual ore.
Add an optional dependency to ensure you load afterwards --
"dependencies": [
"? bobconfig >= 0.14.0",
"? bobores >= 0.14.0",
]
And then you can just
if bobmods.config.ores.EnableBauxite then
require("prototypes.quarry.bob-bauxite")
end
I don't have a list handy of all the ore names, but they're pretty well separated/pseudo-documented in the mod itself.