support --proxy-to-worker with js target, emitting 2 files for client and worker