update demo
test, and incremental refactoring, towards #17
more refactoring - move files, use destructuring rather than mutation for passing values around, start documenting internals
more jsdoc blocks
use reorderImports helper for strict mode AMD/UMD
centralise some shared functions
make data flow less mysterious
more tidying up
update tests
fixes #17 - bundle exports are handled at assignment time rather than via a getter
fresh build
Merge pull request #27 from Rich-Harris/gh-17

Export from bundles at assignment time, rather than with a final getter