DI is the traditional way to get it done, probably more so now than ever before, too, as options for digitally treating a clean raw track are nearly infinite.
Bass is hard to acoustically record properly. It's done, but it's a pain to get right, even in a decent [$$$$$$$] acoustic environment. These days it's not really worth the hassle.
That's why the pros still do it direct most of the time, even guys I know engineering and producing for the big studios in LA.
Actually, though...the dirty little secret is that most of the really great electric bass you hear these days is keyboard synths.