add test case for #10
test and fix for #10
return final exports, rather than storing in __export variable
update tests
return rather than __export with UMD modules
Merge pull request #12 from Rich-Harris/gh-10

fix for #10