fix loading when both `define` and `exports` exist