Isn't it always used as a worker script? If yes, I'm not sure that's really worth keeping the comonjs compatibility code.