This has been the subject of some ingenious interpretations, e.g., Spinoza and Marx.
The French commentator Martial Gueroult (1891-1976) suggested the term panentheism as a substitute for pantheism in the description of Spinoza's worldview.