In ECMAScript 6 creating a module whose default export is a class would look like the following:
Using Babel 6.x to transpile this would look like the following:
If I wanted to require and use this module, in node, I would do the following:
Running that would produce an error:
This stummped me for a bit until I viewed the transpiled file and noticed the exports statement.
In order to require and use this module, in node, correctly I would do: