Hi, i'm a beginner in terms of babel an ECMAScript 6 and i need help to use this plugin.
i would like to use it but i can't get it to work.
I installed the package and i'm trying to use it with .babelrc method.
In my project i got babelify with browserify.
Here is the code:
// sitrep
function bar () {
var a = 'foo'
const b = 'bar'
let c = [a, b].map(x => x)
return c.join('-')
}
console.log(bar());
Here is the compiled one:
function bar() {
var a = 'foo';
var b = 'bar';
var c = [a, b].map(function (x) {
return x;
});
return c.join('-');
}
console.log(bar());
As you can see it doesn't inserte the console logs.
Can you help me please?
Thank you very much.
Hi, i'm a beginner in terms of babel an ECMAScript 6 and i need help to use this plugin.
i would like to use it but i can't get it to work.
I installed the package and i'm trying to use it with .babelrc method.
In my project i got babelify with browserify.
Here is the code:
Here is the compiled one:
As you can see it doesn't inserte the console logs.
Can you help me please?
Thank you very much.