I have this code:
use strict;
import browserSync from browser-sync;
import httpProxy from http-proxy;
let proxy = httpProxy.createProxyServer({});
and I have installed babel-core
and babel-cli
globally via npm. The point is when I try to compile with this on my terminal:
babel proxy.js --out-file proxified.js
The output file gets copied instead of compiled (I mean, it's the same as the source file).
What am I missing here?