I'm wanting to start using this ES6 on Node.js but I can't make it work. I'm adding the node test.js --harmony
flag but I'm still getting bad syntax errors.
It doesn't even pass the first lines of code:
import env from 'node-env-file'
import api from '../src'
I'm getting this
(function (exports, require, module, __filename, __dirname) { import env from 'node-env-file'
^^^^^^
SyntaxError: Unexpected token import
How can I make my Node.js work with this type of syntax.