ensures require and export does not throw errors when on the client side