I have this code:
\"use strict\";
import browserSync from \"browser-sync\";
import httpProxy from \"http-proxy\";
let proxy = httpProxy.createProxyServer({
npm install --save-dev babel-preset-node5
npm install --save-dev babel-preset-react
...and then creating a .babelrc
with the presets:
{
"presets": [
"node5",
"react"
]
}
...resolved a very similar issue for me, with babel 3.8.6
, and node v5.10.1
https://www.npmjs.com/package/babel-preset-node5
https://www.npmjs.com/package/babel-preset-react