In frontend-land you can sort of do this by loading dependencies in iframe sandboxes. In backend, ur fucked.