I have the following in a Node scripts:
"use strict";
class Whatever {
constructor() {
console.log("I'm in the constructor!");
}
}
export default Whatever;
I get Unexpected reserved word
regarding export
.
What am I missing here? How do you specify a class definition in an external file and include/require it?
--harmony
,--harmony_modules
flag etc ?