I'm trying to export an my module as an object but exporting it seems an 'anti pattern' (<https://medium.com/@rauschma/note-that-default-exporting-objects-is-usually-an-anti-pattern-if-you-want-to-export-the-cf674423ac38>)

So I was wondering what's the correct way to export an object and then use it as 

`import utils from "./utils"`
` 

`utils.foo()`

Currently I'm doing like so

```
    /** a.js **/
    function foo(){
      //...
    }

    export {
      foo
    }

    /** b.js **/
    import * as utils from "a";

    utils.foo()

```

is it correct like so? Do I maintain the tree-shaking feature?

thanks